cvs commit: src/sys/kern kern_time.c
Matthew Dillon
dillon at apollo.backplane.com
Fri Apr 22 09:52:52 PDT 2005
:
:joerg 2005/04/22 03:12:26 PDT
:
:DragonFly src repository
:
: Modified files:
: sys/kern kern_time.c
: Log:
: Move to CPU #0 in settime() to prevent races.
:
: Revision Changes Path
: 1.23 +12 -0 src/sys/kern/kern_time.c
:
:
:http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_time.c.diff?r1=1.22&r2=1.23&f=u
The cpu_mb1() call should not be necessary. Theoretically
the lwkt_send_ipiq() call in lwkt_setcpu_self() is responsible
for synchronizing the data on the originating cpu with the
target. In reallity, for IA32, the synchronization is mostly
inherent due to the fact that IA32 orders writes.
-Matt
Matthew Dillon
<dillon at xxxxxxxxxxxxx>
More information about the Commits
mailing list