diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /arch/x86/kernel/rtc.c | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'arch/x86/kernel/rtc.c')
| -rw-r--r-- | arch/x86/kernel/rtc.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c index f7b82ed7b5b5..586f718b8e95 100644 --- a/arch/x86/kernel/rtc.c +++ b/arch/x86/kernel/rtc.c @@ -39,7 +39,7 @@ EXPORT_SYMBOL(rtc_lock);   * jump to the next second precisely 500 ms later. Check the Motorola   * MC146818A or Dallas DS12887 data sheet for details.   */ -int mach_set_rtc_mmss(const struct timespec *now) +int mach_set_rtc_mmss(const struct timespec64 *now)  {  	unsigned long long nowtime = now->tv_sec;  	struct rtc_time tm; @@ -60,7 +60,7 @@ int mach_set_rtc_mmss(const struct timespec *now)  	return retval;  } -void mach_get_cmos_time(struct timespec *now) +void mach_get_cmos_time(struct timespec64 *now)  {  	unsigned int status, year, mon, day, hour, min, sec, century = 0;  	unsigned long flags; @@ -118,7 +118,7 @@ void mach_get_cmos_time(struct timespec *now)  	} else  		year += CMOS_YEARS_OFFS; -	now->tv_sec = mktime(year, mon, day, hour, min, sec); +	now->tv_sec = mktime64(year, mon, day, hour, min, sec);  	now->tv_nsec = 0;  } @@ -145,13 +145,13 @@ void rtc_cmos_write(unsigned char val, unsigned char addr)  }  EXPORT_SYMBOL(rtc_cmos_write); -int update_persistent_clock(struct timespec now) +int update_persistent_clock64(struct timespec64 now)  {  	return x86_platform.set_wallclock(&now);  }  /* not static: needed by APM */ -void read_persistent_clock(struct timespec *ts) +void read_persistent_clock64(struct timespec64 *ts)  {  	x86_platform.get_wallclock(ts);  }  | 
