]> Pileus Git - ~andy/linux/commitdiff
time: Convert CONFIG_GENERIC_TIME_VSYSCALL to CONFIG_GENERIC_TIME_VSYSCALL_OLD
authorJohn Stultz <john.stultz@linaro.org>
Tue, 4 Sep 2012 19:34:21 +0000 (15:34 -0400)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 24 Sep 2012 16:38:07 +0000 (12:38 -0400)
To help migrate archtectures over to the new update_vsyscall method,
redfine CONFIG_GENERIC_TIME_VSYSCALL as CONFIG_GENERIC_TIME_VSYSCALL_OLD

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>
arch/ia64/Kconfig
arch/ia64/kernel/time.c
arch/powerpc/Kconfig
arch/powerpc/kernel/time.c
arch/s390/Kconfig
arch/s390/kernel/time.c
arch/x86/Kconfig
arch/x86/kernel/vsyscall_64.c
include/linux/timekeeper_internal.h
kernel/time/Kconfig
kernel/time/timekeeping.c

index 310cf5781fad2438a6ab24845724364bed31c7e4..f9e673c252a7d326a6581cb0a274e0857758c618 100644 (file)
@@ -38,7 +38,7 @@ config IA64
        select ARCH_TASK_STRUCT_ALLOCATOR
        select ARCH_THREAD_INFO_ALLOCATOR
        select ARCH_CLOCKSOURCE_DATA
-       select GENERIC_TIME_VSYSCALL
+       select GENERIC_TIME_VSYSCALL_OLD
        default y
        help
          The Itanium Processor Family is Intel's 64-bit successor to
index acb688fe235427e2e55deff249d2f20d01b68a3d..d2f4e260db40e36d01087d5ed3a9bc9fe1a71f4d 100644 (file)
@@ -454,7 +454,7 @@ void update_vsyscall_tz(void)
 {
 }
 
-void update_vsyscall(struct timespec *wall, struct timespec *wtm,
+void update_vsyscall_old(struct timespec *wall, struct timespec *wtm,
                        struct clocksource *c, u32 mult)
 {
        write_seqcount_begin(&fsyscall_gtod_data.seq);
index 352f416269ce245c515e25e0cc5cbcf5a446d2a6..0881660c9efafcbf797a834fe3466ceccd98b6f2 100644 (file)
@@ -135,7 +135,7 @@ config PPC
        select ARCH_HAVE_NMI_SAFE_CMPXCHG
        select GENERIC_SMP_IDLE_THREAD
        select GENERIC_CMOS_UPDATE
-       select GENERIC_TIME_VSYSCALL
+       select GENERIC_TIME_VSYSCALL_OLD
        select GENERIC_CLOCKEVENTS
        select GENERIC_STRNCPY_FROM_USER
        select GENERIC_STRNLEN_USER
index 613a830d9d509d4fd187329440a1f40bd7bc5d71..c825809b92e77a515dc514a856ecfdeac1c6d7eb 100644 (file)
@@ -712,7 +712,7 @@ static cycle_t timebase_read(struct clocksource *cs)
        return (cycle_t)get_tb();
 }
 
-void update_vsyscall(struct timespec *wall_time, struct timespec *wtm,
+void update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm,
                        struct clocksource *clock, u32 mult)
 {
        u64 new_tb_to_xs, new_stamp_xsec;
index 107610e01a295e27a7fdb1d82fbf8ad0270a4bfc..ba488aa500de20ac9caaf9192bd1f3122e985fbc 100644 (file)
@@ -121,7 +121,7 @@ config S390
        select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
        select ARCH_WANT_IPC_PARSE_VERSION
        select GENERIC_SMP_IDLE_THREAD
-       select GENERIC_TIME_VSYSCALL
+       select GENERIC_TIME_VSYSCALL_OLD
        select GENERIC_CLOCKEVENTS
        select KTIME_SCALAR if 32BIT
        select HAVE_ARCH_SECCOMP_FILTER
index bfb62ad312a67bae12ec001df51f1cb1f61c7e5c..c5430bf5b5e628dff48ed9ab525ebbcec7901d6d 100644 (file)
@@ -219,7 +219,7 @@ struct clocksource * __init clocksource_default_clock(void)
        return &clocksource_tod;
 }
 
-void update_vsyscall(struct timespec *wall_time, struct timespec *wtm,
+void update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm,
                        struct clocksource *clock, u32 mult)
 {
        if (clock != &clocksource_tod)
index 8ec3a1aa4abd3f612df4a5da31f30c67554d5182..e3f3c1a5a74406446cda4da0c2bd0fa0e18f3037 100644 (file)
@@ -93,7 +93,7 @@ config X86
        select GENERIC_CLOCKEVENTS
        select ARCH_CLOCKSOURCE_DATA if X86_64
        select GENERIC_CLOCKEVENTS_BROADCAST if X86_64 || (X86_32 && X86_LOCAL_APIC)
-       select GENERIC_TIME_VSYSCALL if X86_64
+       select GENERIC_TIME_VSYSCALL_OLD if X86_64
        select KTIME_SCALAR if X86_32
        select GENERIC_STRNCPY_FROM_USER
        select GENERIC_STRNLEN_USER
index 6ec8411a4710a5ce872ac16c682a23f37ebe5006..77dde2953c64b7181e434db453e1a0a82059718a 100644 (file)
@@ -82,7 +82,7 @@ void update_vsyscall_tz(void)
        vsyscall_gtod_data.sys_tz = sys_tz;
 }
 
-void update_vsyscall(struct timespec *wall_time, struct timespec *wtm,
+void update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm,
                        struct clocksource *clock, u32 mult)
 {
        struct timespec monotonic;
index 9c1c2cf413a6cd6c22c07b54d210a70890408a7d..a904d76a5faa528a594ee9866acf97522c556503 100644 (file)
@@ -67,13 +67,14 @@ struct timekeeper {
 };
 
 
-#ifdef CONFIG_GENERIC_TIME_VSYSCALL
+#ifdef CONFIG_GENERIC_TIME_VSYSCALL_OLD
 extern void
-update_vsyscall(struct timespec *ts, struct timespec *wtm,
+update_vsyscall_old(struct timespec *ts, struct timespec *wtm,
                        struct clocksource *c, u32 mult);
 extern void update_vsyscall_tz(void);
 #else
-static inline void update_vsyscall(struct timespec *ts, struct timespec *wtm,
+static inline void
+update_vsyscall_old(struct timespec *ts, struct timespec *wtm,
                                        struct clocksource *c, u32 mult)
 {
 }
index fd42bd452b7528642495e6b619715ccb424b5e2e..489c86154d1f7481ea892fb9d05e0d15bd0a8724 100644 (file)
@@ -13,7 +13,7 @@ config ARCH_CLOCKSOURCE_DATA
        bool
 
 # Timekeeping vsyscall support
-config GENERIC_TIME_VSYSCALL
+config GENERIC_TIME_VSYSCALL_OLD
        bool
 
 # ktime_t scalar 64bit nsec representation
index 02c19d3d8e0dd38fa76b0ccce2594449eca490db..7c2851384c460d3b6595ad6a94934d720bd5cc4c 100644 (file)
@@ -199,7 +199,7 @@ static void timekeeping_update(struct timekeeper *tk, bool clearntp)
                ntp_clear();
        }
        xt = tk_xtime(tk);
-       update_vsyscall(&xt, &tk->wall_to_monotonic, tk->clock, tk->mult);
+       update_vsyscall_old(&xt, &tk->wall_to_monotonic, tk->clock, tk->mult);
 }
 
 /**