Re: cvs commit: src/sys/kern kern_time.c

看板DFBSD_commit作者時間21年前 (2005/04/23 02:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/8 (看更多)
: :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>
文章代碼(AID): #12QJmO00 (DFBSD_commit)
討論串 (同標題文章)
文章代碼(AID): #12QJmO00 (DFBSD_commit)