diff options
| -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 310cf5781fa..f9e673c252a 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig @@ -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 diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c index acb688fe235..d2f4e260db4 100644 --- a/arch/ia64/kernel/time.c +++ b/arch/ia64/kernel/time.c @@ -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); diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 352f416269c..0881660c9ef 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -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 diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 613a830d9d5..c825809b92e 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)  	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; diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 107610e01a2..ba488aa500d 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -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 diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index bfb62ad312a..c5430bf5b5e 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c @@ -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) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 8ec3a1aa4ab..e3f3c1a5a74 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -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 diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c index 6ec8411a471..77dde2953c6 100644 --- a/arch/x86/kernel/vsyscall_64.c +++ b/arch/x86/kernel/vsyscall_64.c @@ -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; diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper_internal.h index 9c1c2cf413a..a904d76a5fa 100644 --- a/include/linux/timekeeper_internal.h +++ b/include/linux/timekeeper_internal.h @@ -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)  {  } diff --git a/kernel/time/Kconfig b/kernel/time/Kconfig index fd42bd452b7..489c86154d1 100644 --- a/kernel/time/Kconfig +++ b/kernel/time/Kconfig @@ -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 diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 02c19d3d8e0..7c2851384c4 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -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);  }  /**  |