]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Cleanup non-arch xtime uses, use get_seconds() or current_kernel_time().
authorjohn stultz <johnstul@us.ibm.com>
Wed, 25 Jul 2007 00:47:43 +0000 (17:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 25 Jul 2007 17:09:20 +0000 (10:09 -0700)
commit2c6b47de17c75d553de3e2fb426d8298d2074585
treec8edc3d727d85cb3e1c043583c350a04a133e1a3
parent0de085bb474f64e4fdb2f1ff3268590792648c7b
Cleanup non-arch xtime uses, use get_seconds() or current_kernel_time().

This avoids use of the kernel-internal "xtime" variable directly outside
of the actual time-related functions.  Instead, use the helper functions
that we already have available to us.

This doesn't actually change any behaviour, but this will allow us to
fix the fact that "xtime" isn't updated very often with CONFIG_NO_HZ
(because much of the realtime information is maintained as separate
offsets to 'xtime'), which has caused interfaces that use xtime directly
to get a time that is out of sync with the real-time clock by up to a
third of a second or so.

Signed-off-by: John Stultz <johnstul@us.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 files changed:
drivers/rtc/class.c
drivers/s390/net/ctcmain.c
drivers/s390/net/netiucv.c
include/linux/time.h
kernel/acct.c
kernel/hrtimer.c
kernel/time.c
kernel/time/timekeeping.c
kernel/tsacct.c
net/rxrpc/af_rxrpc.c
net/rxrpc/ar-connection.c
net/rxrpc/ar-transport.c
net/rxrpc/rxkad.c