Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



> > Modified Files:
> >     src/sys/kern: subr_cprng.c
> > 
> > Log Message:
> > Include MD <machine/cpu_counter.h> only if defined(__HAVE_CPU_COUNTER).
> > 
> > XXX: Why not timecounter(9) but deprecated cpu_counter32() and microtime(9)?
> 
> microtime(9) is part of timecounter(9).

With extra overhead?

> There is no real replacement for
> cpu_counter32, which is doing a lot less processing than the
> alternatives.

It seems used to get a random number and
I think MI getbintime(9) is simple and enough.

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index