aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sparc64/kernel/time.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/time.c b/arch/sparc64/kernel/time.c
index cc16fdcf98af..184321b88a68 100644
--- a/arch/sparc64/kernel/time.c
+++ b/arch/sparc64/kernel/time.c
@@ -405,6 +405,11 @@ static unsigned long timer_ticks_per_nsec_quotient __read_mostly;
405 405
406int update_persistent_clock(struct timespec now) 406int update_persistent_clock(struct timespec now)
407{ 407{
408 struct rtc_device *rtc = rtc_class_open("rtc0");
409
410 if (rtc)
411 return rtc_set_mmss(rtc, now.tv_sec);
412
408 return set_rtc_mmss(now.tv_sec); 413 return set_rtc_mmss(now.tv_sec);
409} 414}
410 415