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/ppc64/kernel/idle.c | |
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/ppc64/kernel/idle.c')
-rw-r--r-- | arch/ppc64/kernel/idle.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/ppc64/kernel/idle.c b/arch/ppc64/kernel/idle.c index 954395d42636..8abd2ad92832 100644 --- a/arch/ppc64/kernel/idle.c +++ b/arch/ppc64/kernel/idle.c | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | extern void power4_idle(void); | 32 | extern void power4_idle(void); |
33 | 33 | ||
34 | int default_idle(void) | 34 | void default_idle(void) |
35 | { | 35 | { |
36 | long oldval; | 36 | long oldval; |
37 | unsigned int cpu = smp_processor_id(); | 37 | unsigned int cpu = smp_processor_id(); |
@@ -64,11 +64,9 @@ int default_idle(void) | |||
64 | if (cpu_is_offline(cpu) && system_state == SYSTEM_RUNNING) | 64 | if (cpu_is_offline(cpu) && system_state == SYSTEM_RUNNING) |
65 | cpu_die(); | 65 | cpu_die(); |
66 | } | 66 | } |
67 | |||
68 | return 0; | ||
69 | } | 67 | } |
70 | 68 | ||
71 | int native_idle(void) | 69 | void native_idle(void) |
72 | { | 70 | { |
73 | while (1) { | 71 | while (1) { |
74 | ppc64_runlatch_off(); | 72 | ppc64_runlatch_off(); |
@@ -85,8 +83,6 @@ int native_idle(void) | |||
85 | system_state == SYSTEM_RUNNING) | 83 | system_state == SYSTEM_RUNNING) |
86 | cpu_die(); | 84 | cpu_die(); |
87 | } | 85 | } |
88 | |||
89 | return 0; | ||
90 | } | 86 | } |
91 | 87 | ||
92 | void cpu_idle(void) | 88 | void cpu_idle(void) |