diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-19 09:11:21 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-19 09:11:21 -0400 |
commit | 143a1dec7e04e0a9712ff93e779aabfb21dfd97c (patch) | |
tree | 3a60a4e630d792fb3cdc6e962ce0ecfd94bb2672 /arch/powerpc/platforms/iseries | |
parent | 7ed476d17f04473f70d796cb6c172bdcfcc9b8e5 (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/powerpc/platforms/iseries')
-rw-r--r-- | arch/powerpc/platforms/iseries/mf.c | 12 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/setup.c | 12 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/setup.h | 2 |
3 files changed, 13 insertions, 13 deletions
diff --git a/arch/powerpc/platforms/iseries/mf.c b/arch/powerpc/platforms/iseries/mf.c index 3f25f7fc79fc..e5de31aa0015 100644 --- a/arch/powerpc/platforms/iseries/mf.c +++ b/arch/powerpc/platforms/iseries/mf.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/delay.h> | 32 | #include <linux/delay.h> |
33 | #include <linux/dma-mapping.h> | 33 | #include <linux/dma-mapping.h> |
34 | #include <linux/bcd.h> | 34 | #include <linux/bcd.h> |
35 | #include <linux/rtc.h> | ||
35 | 36 | ||
36 | #include <asm/time.h> | 37 | #include <asm/time.h> |
37 | #include <asm/uaccess.h> | 38 | #include <asm/uaccess.h> |
@@ -1307,11 +1308,14 @@ int iSeries_set_rtc_time(struct rtc_time *tm) | |||
1307 | return 0; | 1308 | return 0; |
1308 | } | 1309 | } |
1309 | 1310 | ||
1310 | void iSeries_get_boot_time(struct rtc_time *tm) | 1311 | unsigned long iSeries_get_boot_time(void) |
1311 | { | 1312 | { |
1313 | struct rtc_time tm; | ||
1314 | |||
1312 | if (piranha_simulator) | 1315 | if (piranha_simulator) |
1313 | return; | 1316 | return 0; |
1314 | 1317 | ||
1315 | mf_get_boot_rtc(tm); | 1318 | mf_get_boot_rtc(&tm); |
1316 | tm->tm_mon -= 1; | 1319 | return mktime(tm.tm_year + 1900, tm.tm_mon, tm.tm_mday, |
1320 | tm.tm_hour, tm.tm_min, tm.tm_sec); | ||
1317 | } | 1321 | } |
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c index 93852c2ee5de..41cd5b689545 100644 --- a/arch/powerpc/platforms/iseries/setup.c +++ b/arch/powerpc/platforms/iseries/setup.c | |||
@@ -73,8 +73,8 @@ extern void hvlog(char *fmt, ...); | |||
73 | extern void ppcdbg_initialize(void); | 73 | extern void ppcdbg_initialize(void); |
74 | 74 | ||
75 | static void build_iSeries_Memory_Map(void); | 75 | static void build_iSeries_Memory_Map(void); |
76 | static int iseries_shared_idle(void); | 76 | static void iseries_shared_idle(void); |
77 | static int iseries_dedicated_idle(void); | 77 | static void iseries_dedicated_idle(void); |
78 | #ifdef CONFIG_PCI | 78 | #ifdef CONFIG_PCI |
79 | extern void iSeries_pci_final_fixup(void); | 79 | extern void iSeries_pci_final_fixup(void); |
80 | #else | 80 | #else |
@@ -693,7 +693,7 @@ static void yield_shared_processor(void) | |||
693 | process_iSeries_events(); | 693 | process_iSeries_events(); |
694 | } | 694 | } |
695 | 695 | ||
696 | static int iseries_shared_idle(void) | 696 | static void iseries_shared_idle(void) |
697 | { | 697 | { |
698 | while (1) { | 698 | while (1) { |
699 | while (!need_resched() && !hvlpevent_is_pending()) { | 699 | while (!need_resched() && !hvlpevent_is_pending()) { |
@@ -715,11 +715,9 @@ static int iseries_shared_idle(void) | |||
715 | 715 | ||
716 | schedule(); | 716 | schedule(); |
717 | } | 717 | } |
718 | |||
719 | return 0; | ||
720 | } | 718 | } |
721 | 719 | ||
722 | static int iseries_dedicated_idle(void) | 720 | static void iseries_dedicated_idle(void) |
723 | { | 721 | { |
724 | long oldval; | 722 | long oldval; |
725 | 723 | ||
@@ -749,8 +747,6 @@ static int iseries_dedicated_idle(void) | |||
749 | ppc64_runlatch_on(); | 747 | ppc64_runlatch_on(); |
750 | schedule(); | 748 | schedule(); |
751 | } | 749 | } |
752 | |||
753 | return 0; | ||
754 | } | 750 | } |
755 | 751 | ||
756 | #ifndef CONFIG_PCI | 752 | #ifndef CONFIG_PCI |
diff --git a/arch/powerpc/platforms/iseries/setup.h b/arch/powerpc/platforms/iseries/setup.h index 6da89ae991ce..5213044ec411 100644 --- a/arch/powerpc/platforms/iseries/setup.h +++ b/arch/powerpc/platforms/iseries/setup.h | |||
@@ -17,7 +17,7 @@ | |||
17 | #ifndef __ISERIES_SETUP_H__ | 17 | #ifndef __ISERIES_SETUP_H__ |
18 | #define __ISERIES_SETUP_H__ | 18 | #define __ISERIES_SETUP_H__ |
19 | 19 | ||
20 | extern void iSeries_get_boot_time(struct rtc_time *tm); | 20 | extern unsigned long iSeries_get_boot_time(void); |
21 | extern int iSeries_set_rtc_time(struct rtc_time *tm); | 21 | extern int iSeries_set_rtc_time(struct rtc_time *tm); |
22 | extern void iSeries_get_rtc_time(struct rtc_time *tm); | 22 | extern void iSeries_get_rtc_time(struct rtc_time *tm); |
23 | 23 | ||