diff options
author | Arnd Bergmann <arnd@arndb.de> | 2005-06-22 19:43:18 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-06-22 19:43:18 -0400 |
commit | 773bf9c469c01f01280c9bd45ec2462dd94d08a0 (patch) | |
tree | 3a7969b96d7fcbf11d3ebbb9ef10fb081a448979 /arch | |
parent | 10f7e7c15e6ce41799c5dba6925ae4bf8048c870 (diff) |
[PATCH] ppc64: rename pSeries rtc functions into rtas_*
The rtc rtas functions are not pSeries specific but can
also be used by BPA and other SLOF based platforms
Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ppc64/kernel/pSeries_setup.c | 9 | ||||
-rw-r--r-- | arch/ppc64/kernel/rtc.c | 6 |
2 files changed, 6 insertions, 9 deletions
diff --git a/arch/ppc64/kernel/pSeries_setup.c b/arch/ppc64/kernel/pSeries_setup.c index f9a310c0c8d7..c5f3ccac7cd1 100644 --- a/arch/ppc64/kernel/pSeries_setup.c +++ b/arch/ppc64/kernel/pSeries_setup.c | |||
@@ -73,9 +73,6 @@ | |||
73 | 73 | ||
74 | extern void pSeries_final_fixup(void); | 74 | extern void pSeries_final_fixup(void); |
75 | 75 | ||
76 | extern void pSeries_get_boot_time(struct rtc_time *rtc_time); | ||
77 | extern void pSeries_get_rtc_time(struct rtc_time *rtc_time); | ||
78 | extern int pSeries_set_rtc_time(struct rtc_time *rtc_time); | ||
79 | extern void find_udbg_vterm(void); | 76 | extern void find_udbg_vterm(void); |
80 | extern void system_reset_fwnmi(void); /* from head.S */ | 77 | extern void system_reset_fwnmi(void); /* from head.S */ |
81 | extern void machine_check_fwnmi(void); /* from head.S */ | 78 | extern void machine_check_fwnmi(void); /* from head.S */ |
@@ -534,9 +531,9 @@ struct machdep_calls __initdata pSeries_md = { | |||
534 | .halt = rtas_halt, | 531 | .halt = rtas_halt, |
535 | .panic = rtas_os_term, | 532 | .panic = rtas_os_term, |
536 | .cpu_die = pSeries_mach_cpu_die, | 533 | .cpu_die = pSeries_mach_cpu_die, |
537 | .get_boot_time = pSeries_get_boot_time, | 534 | .get_boot_time = rtas_get_boot_time, |
538 | .get_rtc_time = pSeries_get_rtc_time, | 535 | .get_rtc_time = rtas_get_rtc_time, |
539 | .set_rtc_time = pSeries_set_rtc_time, | 536 | .set_rtc_time = rtas_set_rtc_time, |
540 | .calibrate_decr = generic_calibrate_decr, | 537 | .calibrate_decr = generic_calibrate_decr, |
541 | .progress = pSeries_progress, | 538 | .progress = pSeries_progress, |
542 | .check_legacy_ioport = pSeries_check_legacy_ioport, | 539 | .check_legacy_ioport = pSeries_check_legacy_ioport, |
diff --git a/arch/ppc64/kernel/rtc.c b/arch/ppc64/kernel/rtc.c index de02aedbe080..d729fefa0df5 100644 --- a/arch/ppc64/kernel/rtc.c +++ b/arch/ppc64/kernel/rtc.c | |||
@@ -301,7 +301,7 @@ void iSeries_get_boot_time(struct rtc_time *tm) | |||
301 | #ifdef CONFIG_PPC_RTAS | 301 | #ifdef CONFIG_PPC_RTAS |
302 | #define MAX_RTC_WAIT 5000 /* 5 sec */ | 302 | #define MAX_RTC_WAIT 5000 /* 5 sec */ |
303 | #define RTAS_CLOCK_BUSY (-2) | 303 | #define RTAS_CLOCK_BUSY (-2) |
304 | void pSeries_get_boot_time(struct rtc_time *rtc_tm) | 304 | void rtas_get_boot_time(struct rtc_time *rtc_tm) |
305 | { | 305 | { |
306 | int ret[8]; | 306 | int ret[8]; |
307 | int error, wait_time; | 307 | int error, wait_time; |
@@ -336,7 +336,7 @@ void pSeries_get_boot_time(struct rtc_time *rtc_tm) | |||
336 | * and if a delay is needed to read the clock. In this case we just | 336 | * and if a delay is needed to read the clock. In this case we just |
337 | * silently return without updating rtc_tm. | 337 | * silently return without updating rtc_tm. |
338 | */ | 338 | */ |
339 | void pSeries_get_rtc_time(struct rtc_time *rtc_tm) | 339 | void rtas_get_rtc_time(struct rtc_time *rtc_tm) |
340 | { | 340 | { |
341 | int ret[8]; | 341 | int ret[8]; |
342 | int error, wait_time; | 342 | int error, wait_time; |
@@ -371,7 +371,7 @@ void pSeries_get_rtc_time(struct rtc_time *rtc_tm) | |||
371 | rtc_tm->tm_year = ret[0] - 1900; | 371 | rtc_tm->tm_year = ret[0] - 1900; |
372 | } | 372 | } |
373 | 373 | ||
374 | int pSeries_set_rtc_time(struct rtc_time *tm) | 374 | int rtas_set_rtc_time(struct rtc_time *tm) |
375 | { | 375 | { |
376 | int error, wait_time; | 376 | int error, wait_time; |
377 | unsigned long max_wait_tb; | 377 | unsigned long max_wait_tb; |