time: Only do nanosecond rounding on GENERIC_TIME_VSYSCALL_OLD systems
authorJohn Stultz <john.stultz@linaro.org>
Tue, 4 Sep 2012 19:38:12 +0000 (15:38 -0400)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 24 Sep 2012 16:38:08 +0000 (12:38 -0400)
commit92bb1fcf57a0c2e45f7e67fbf0a8ed475a749236
treef92496be64d01da6cf3ba54c31c4c4753c10bd59
parent576094b7f0aaf41aadab9b7d4e5bd85faa432711
time: Only do nanosecond rounding on GENERIC_TIME_VSYSCALL_OLD systems

We only do rounding to the next nanosecond so we don't see minor
1ns inconsistencies in the vsyscall implementations. Since we're
changing the vsyscall implementations to avoid this, conditionalize
the rounding only to the GENERIC_TIME_VSYSCALL_OLD architectures.

Cc: Tony Luck <tony.luck@intel.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Paul Turner <pjt@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/timekeeping.c