DragonFly BSD
DragonFly commits List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 22 Apr 2005 09:50:57 -0700 (PDT)

:
: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@xxxxxxxxxxxxx>



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