aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/maple_time.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-19 09:11:21 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-19 09:11:21 -0400
commit143a1dec7e04e0a9712ff93e779aabfb21dfd97c (patch)
tree3a60a4e630d792fb3cdc6e962ce0ecfd94bb2672 /arch/ppc64/kernel/maple_time.c
parent7ed476d17f04473f70d796cb6c172bdcfcc9b8e5 (diff)
powerpc: Merge machdep.h
A few things change for consistency between ppc32 and ppc64: idle functions return void; *_get_boot_time functions return unsigned long (i.e. time_t) rather than filling in a struct rtc_time (since that's useful to the callers and easier for pmac to generate); *_get_rtc_time and *_set_rtc_time functions take a struct rtc_time; irq_canonicalize is gone; nvram_sync returns void. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/maple_time.c')
-rw-r--r--arch/ppc64/kernel/maple_time.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/maple_time.c b/arch/ppc64/kernel/maple_time.c
index d65210abcd03..cf5186335900 100644
--- a/arch/ppc64/kernel/maple_time.c
+++ b/arch/ppc64/kernel/maple_time.c
@@ -156,8 +156,9 @@ int maple_set_rtc_time(struct rtc_time *tm)
156 return 0; 156 return 0;
157} 157}
158 158
159void __init maple_get_boot_time(struct rtc_time *tm) 159unsigned long __init maple_get_boot_time(void)
160{ 160{
161 struct rtc_time tm;
161 struct device_node *rtcs; 162 struct device_node *rtcs;
162 163
163 rtcs = find_compatible_devices("rtc", "pnpPNP,b00"); 164 rtcs = find_compatible_devices("rtc", "pnpPNP,b00");
@@ -170,6 +171,8 @@ void __init maple_get_boot_time(struct rtc_time *tm)
170 "legacy address (0x%x)\n", maple_rtc_addr); 171 "legacy address (0x%x)\n", maple_rtc_addr);
171 } 172 }
172 173
173 maple_get_rtc_time(tm); 174 maple_get_rtc_time(&tm);
175 return mktime(time->tm_year+1900, time->tm_mon+1, time->tm_mday,
176 time->tm_hour, time->tm_min, time->tm_sec);
174} 177}
175 178