diff options
author | John Stultz <john.stultz@linaro.org> | 2012-09-04 15:34:21 -0400 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2012-09-24 12:38:07 -0400 |
commit | 706394211648117762edfaeffd6fc04bf3b1a75d (patch) | |
tree | 9ce33be0d144430c4089656a9e20c74d829d4638 | |
parent | 189374aed657e2228ad6b39ece438c9cdafc8dae (diff) |
time: Convert CONFIG_GENERIC_TIME_VSYSCALL to CONFIG_GENERIC_TIME_VSYSCALL_OLD
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>
-rw-r--r-- | arch/ia64/Kconfig | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/time.c | 2 | ||||
-rw-r--r-- | arch/powerpc/Kconfig | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/time.c | 2 | ||||
-rw-r--r-- | arch/s390/Kconfig | 2 | ||||
-rw-r--r-- | arch/s390/kernel/time.c | 2 | ||||
-rw-r--r-- | arch/x86/Kconfig | 2 | ||||
-rw-r--r-- | arch/x86/kernel/vsyscall_64.c | 2 | ||||
-rw-r--r-- | include/linux/timekeeper_internal.h | 7 | ||||
-rw-r--r-- | kernel/time/Kconfig | 2 | ||||
-rw-r--r-- | kernel/time/timekeeping.c | 2 |
11 files changed, 14 insertions, 13 deletions
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 310cf5781fad..f9e673c252a7 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig | |||
@@ -38,7 +38,7 @@ config IA64 | |||
38 | select ARCH_TASK_STRUCT_ALLOCATOR | 38 | select ARCH_TASK_STRUCT_ALLOCATOR |
39 | select ARCH_THREAD_INFO_ALLOCATOR | 39 | select ARCH_THREAD_INFO_ALLOCATOR |
40 | select ARCH_CLOCKSOURCE_DATA | 40 | select ARCH_CLOCKSOURCE_DATA |
41 | select GENERIC_TIME_VSYSCALL | 41 | select GENERIC_TIME_VSYSCALL_OLD |
42 | default y | 42 | default y |
43 | help | 43 | help |
44 | The Itanium Processor Family is Intel's 64-bit successor to | 44 | The Itanium Processor Family is Intel's 64-bit successor to |
diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c index acb688fe2354..d2f4e260db40 100644 --- a/arch/ia64/kernel/time.c +++ b/arch/ia64/kernel/time.c | |||
@@ -454,7 +454,7 @@ void update_vsyscall_tz(void) | |||
454 | { | 454 | { |
455 | } | 455 | } |
456 | 456 | ||
457 | void update_vsyscall(struct timespec *wall, struct timespec *wtm, | 457 | void update_vsyscall_old(struct timespec *wall, struct timespec *wtm, |
458 | struct clocksource *c, u32 mult) | 458 | struct clocksource *c, u32 mult) |
459 | { | 459 | { |
460 | write_seqcount_begin(&fsyscall_gtod_data.seq); | 460 | write_seqcount_begin(&fsyscall_gtod_data.seq); |
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 352f416269ce..0881660c9efa 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -135,7 +135,7 @@ config PPC | |||
135 | select ARCH_HAVE_NMI_SAFE_CMPXCHG | 135 | select ARCH_HAVE_NMI_SAFE_CMPXCHG |
136 | select GENERIC_SMP_IDLE_THREAD | 136 | select GENERIC_SMP_IDLE_THREAD |
137 | select GENERIC_CMOS_UPDATE | 137 | select GENERIC_CMOS_UPDATE |
138 | select GENERIC_TIME_VSYSCALL | 138 | select GENERIC_TIME_VSYSCALL_OLD |
139 | select GENERIC_CLOCKEVENTS | 139 | select GENERIC_CLOCKEVENTS |
140 | select GENERIC_STRNCPY_FROM_USER | 140 | select GENERIC_STRNCPY_FROM_USER |
141 | select GENERIC_STRNLEN_USER | 141 | select GENERIC_STRNLEN_USER |
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 613a830d9d50..c825809b92e7 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -712,7 +712,7 @@ static cycle_t timebase_read(struct clocksource *cs) | |||
712 | return (cycle_t)get_tb(); | 712 | return (cycle_t)get_tb(); |
713 | } | 713 | } |
714 | 714 | ||
715 | void update_vsyscall(struct timespec *wall_time, struct timespec *wtm, | 715 | void update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm, |
716 | struct clocksource *clock, u32 mult) | 716 | struct clocksource *clock, u32 mult) |
717 | { | 717 | { |
718 | u64 new_tb_to_xs, new_stamp_xsec; | 718 | u64 new_tb_to_xs, new_stamp_xsec; |
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 107610e01a29..ba488aa500de 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
@@ -121,7 +121,7 @@ config S390 | |||
121 | select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE | 121 | select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE |
122 | select ARCH_WANT_IPC_PARSE_VERSION | 122 | select ARCH_WANT_IPC_PARSE_VERSION |
123 | select GENERIC_SMP_IDLE_THREAD | 123 | select GENERIC_SMP_IDLE_THREAD |
124 | select GENERIC_TIME_VSYSCALL | 124 | select GENERIC_TIME_VSYSCALL_OLD |
125 | select GENERIC_CLOCKEVENTS | 125 | select GENERIC_CLOCKEVENTS |
126 | select KTIME_SCALAR if 32BIT | 126 | select KTIME_SCALAR if 32BIT |
127 | select HAVE_ARCH_SECCOMP_FILTER | 127 | select HAVE_ARCH_SECCOMP_FILTER |
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index bfb62ad312a6..c5430bf5b5e6 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c | |||
@@ -219,7 +219,7 @@ struct clocksource * __init clocksource_default_clock(void) | |||
219 | return &clocksource_tod; | 219 | return &clocksource_tod; |
220 | } | 220 | } |
221 | 221 | ||
222 | void update_vsyscall(struct timespec *wall_time, struct timespec *wtm, | 222 | void update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm, |
223 | struct clocksource *clock, u32 mult) | 223 | struct clocksource *clock, u32 mult) |
224 | { | 224 | { |
225 | if (clock != &clocksource_tod) | 225 | if (clock != &clocksource_tod) |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 8ec3a1aa4abd..e3f3c1a5a744 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -93,7 +93,7 @@ config X86 | |||
93 | select GENERIC_CLOCKEVENTS | 93 | select GENERIC_CLOCKEVENTS |
94 | select ARCH_CLOCKSOURCE_DATA if X86_64 | 94 | select ARCH_CLOCKSOURCE_DATA if X86_64 |
95 | select GENERIC_CLOCKEVENTS_BROADCAST if X86_64 || (X86_32 && X86_LOCAL_APIC) | 95 | select GENERIC_CLOCKEVENTS_BROADCAST if X86_64 || (X86_32 && X86_LOCAL_APIC) |
96 | select GENERIC_TIME_VSYSCALL if X86_64 | 96 | select GENERIC_TIME_VSYSCALL_OLD if X86_64 |
97 | select KTIME_SCALAR if X86_32 | 97 | select KTIME_SCALAR if X86_32 |
98 | select GENERIC_STRNCPY_FROM_USER | 98 | select GENERIC_STRNCPY_FROM_USER |
99 | select GENERIC_STRNLEN_USER | 99 | select GENERIC_STRNLEN_USER |
diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c index 6ec8411a4710..77dde2953c64 100644 --- a/arch/x86/kernel/vsyscall_64.c +++ b/arch/x86/kernel/vsyscall_64.c | |||
@@ -82,7 +82,7 @@ void update_vsyscall_tz(void) | |||
82 | vsyscall_gtod_data.sys_tz = sys_tz; | 82 | vsyscall_gtod_data.sys_tz = sys_tz; |
83 | } | 83 | } |
84 | 84 | ||
85 | void update_vsyscall(struct timespec *wall_time, struct timespec *wtm, | 85 | void update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm, |
86 | struct clocksource *clock, u32 mult) | 86 | struct clocksource *clock, u32 mult) |
87 | { | 87 | { |
88 | struct timespec monotonic; | 88 | struct timespec monotonic; |
diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper_internal.h index 9c1c2cf413a6..a904d76a5faa 100644 --- a/include/linux/timekeeper_internal.h +++ b/include/linux/timekeeper_internal.h | |||
@@ -67,13 +67,14 @@ struct timekeeper { | |||
67 | }; | 67 | }; |
68 | 68 | ||
69 | 69 | ||
70 | #ifdef CONFIG_GENERIC_TIME_VSYSCALL | 70 | #ifdef CONFIG_GENERIC_TIME_VSYSCALL_OLD |
71 | extern void | 71 | extern void |
72 | update_vsyscall(struct timespec *ts, struct timespec *wtm, | 72 | update_vsyscall_old(struct timespec *ts, struct timespec *wtm, |
73 | struct clocksource *c, u32 mult); | 73 | struct clocksource *c, u32 mult); |
74 | extern void update_vsyscall_tz(void); | 74 | extern void update_vsyscall_tz(void); |
75 | #else | 75 | #else |
76 | static inline void update_vsyscall(struct timespec *ts, struct timespec *wtm, | 76 | static inline void |
77 | update_vsyscall_old(struct timespec *ts, struct timespec *wtm, | ||
77 | struct clocksource *c, u32 mult) | 78 | struct clocksource *c, u32 mult) |
78 | { | 79 | { |
79 | } | 80 | } |
diff --git a/kernel/time/Kconfig b/kernel/time/Kconfig index fd42bd452b75..489c86154d1f 100644 --- a/kernel/time/Kconfig +++ b/kernel/time/Kconfig | |||
@@ -13,7 +13,7 @@ config ARCH_CLOCKSOURCE_DATA | |||
13 | bool | 13 | bool |
14 | 14 | ||
15 | # Timekeeping vsyscall support | 15 | # Timekeeping vsyscall support |
16 | config GENERIC_TIME_VSYSCALL | 16 | config GENERIC_TIME_VSYSCALL_OLD |
17 | bool | 17 | bool |
18 | 18 | ||
19 | # ktime_t scalar 64bit nsec representation | 19 | # ktime_t scalar 64bit nsec representation |
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 02c19d3d8e0d..7c2851384c46 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
@@ -199,7 +199,7 @@ static void timekeeping_update(struct timekeeper *tk, bool clearntp) | |||
199 | ntp_clear(); | 199 | ntp_clear(); |
200 | } | 200 | } |
201 | xt = tk_xtime(tk); | 201 | xt = tk_xtime(tk); |
202 | update_vsyscall(&xt, &tk->wall_to_monotonic, tk->clock, tk->mult); | 202 | update_vsyscall_old(&xt, &tk->wall_to_monotonic, tk->clock, tk->mult); |
203 | } | 203 | } |
204 | 204 | ||
205 | /** | 205 | /** |