Re: cvs commit: src/sys/kern kern_time.c
:
: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@backplane.com>
討論串 (同標題文章)
完整討論串 (本文為第 3 之 8 篇):