cvs commit: src/sys/kern kern_time.c

Attilio Rao attilio at freebsd.org
Fri Jan 18 05:34:59 PST 2008


2008/1/18, David Xu <davidxu at freebsd.org>:
> davidxu     2008-01-18 13:00:28 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             kern_time.c
>   Log:
>   Make sure reading td_runtime in critical section since thread may be
>   preempted and td_runtime will be modified.

If you don't need the operation to be atomical with other operations
inside the critical path (and I don't expect so) this change is
pointless as our reading are always atomic.

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein


More information about the cvs-all mailing list