kernel-ark/arch/powerpc
Paul Mackerras 092b8f3488 powerpc: Keep xtime and gettimeofday in sync
This fixes a regression which was introduced by moving ppc32 to use
the same sort of lockless gettimeofday as ppc64 has been using for
some time.  This involves getting the timebase and performing some
simple arithmetic to convert it to seconds and microseconds.  However,
the factor and offset used there weren't being updated when NTP
varied the tick length using adjtimex.  64-bit didn't notice the
problem because it had a hook in the 32-bit adjtimex compat routine
that attempted to work out what the generic timekeeping code would
do and alter the factor and offset to match.  However, that code
was very complex and it wasn't clear that it still matched what the
generic code would do.

Now we use the generic current_tick_length() routine that was recently
added to check that the current tick will be as long as we expect; if
not we recompute the factor and offset.  This keeps gettimeofday and
xtime in sync.  In addition we check that gettimeofday hasn't got ahead
of xtime on each timer interrupt; if it has, we resync.

Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-02-20 10:38:56 +11:00
..
boot powerpc/32: Generate miboot images with ARCH=powerpc 2006-01-15 13:00:08 +11:00
configs [PATCH] e1000: Added disable packet split capability 2006-01-18 16:17:57 -05:00
kernel powerpc: Keep xtime and gettimeofday in sync 2006-02-20 10:38:56 +11:00
lib [PATCH] powerpc: Remove lppaca structure from the PACA 2006-01-13 21:17:39 +11:00
mm [PATCH] powerpc: Cleanup, consolidating icache dirtying logic 2006-02-07 21:51:53 +11:00
oprofile [PATCH] powerpc: oprofile cpu type names clash with other code 2006-01-14 11:12:16 +11:00
platforms [PATCH] powermac pci iomem annotations 2006-02-08 01:03:33 -05:00
sysdev [PATCH] fix iomem annotations in dart_iommu 2006-02-08 01:04:30 -05:00
xmon [PATCH] powerpc: xmon namespace cleanups 2006-01-12 20:39:14 +11:00
Kconfig [PATCH] powerpc: Add CONFIG_DEFAULT_UIMAGE for embedded boards 2006-02-10 17:15:01 +11:00
Kconfig.debug [PATCH] powerpc: Make early debugging configurable via Kconfig 2006-01-11 14:48:26 +11:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge 2006-02-10 14:52:31 -08:00