]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc64: fix initialisation of gettimeofday calculations
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 May 2005 03:41:26 +0000 (13:41 +1000)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 25 May 2005 17:13:42 +0000 (10:13 -0700)
commit0cd46251dba2cbc2cd6358b1258d1e1c3e8f115b
tree86f5508d38d2f3b2e0f0d5b528fb27edef431b0f
parentcf9654a2836dcff62c39b0931192c12e16d41174
[PATCH] ppc64: fix initialisation of gettimeofday calculations

On PPC64, we keep track of when we need to update jiffies (and the
variables used to calculate the time of day) based on the time base.

If the time base frequence is sufficiently high compared to the
processor clock frequency, then it is possible for the time of day
variables to be corrupted at the time of the first decrementer interrupt
we take.  This became obvious on a legacy iSeries where the time base
frequency is the same as the processor clock.

This one line patch fixes the initialisation so that the time of day
variables and the indicator we use to tell when updates are due are
better synchronised.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/time.c