projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bcd174
)
[SPARC64]: Fix mini RTC driver reading.
author
David S. Miller
<davem@davemloft.net>
Fri, 3 Mar 2006 04:28:34 +0000
(20:28 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:14:15 +0000
(
01:14
-0800)
Need to subtract 1900 from year and 1 from month before
giving it back to userspace.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/time.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc64/kernel/time.c
b/arch/sparc64/kernel/time.c
index d50ebeae144ae5f883fb299bad9bfb745997886a..7d61f1bfd3d33806b2babc5e7065a35542f14c63 100644
(file)
--- a/
arch/sparc64/kernel/time.c
+++ b/
arch/sparc64/kernel/time.c
@@
-1363,6
+1363,8
@@
static inline void mini_get_rtc_time(struct rtc_time *time)
spin_unlock_irqrestore(&rtc_lock, flags);
to_tm(seconds, time);
+ time->tm_year -= 1900;
+ time->tm_mon -= 1;
}
static inline int mini_set_rtc_time(struct rtc_time *time)