diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2005-07-07 20:56:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:23:40 -0400 |
commit | fd899c0cc725387992ccfc83fb6f70505c36cbeb (patch) | |
tree | 0de5d3960c7e7247638c962d7913acec1ce2e9fe /arch/ppc64/kernel/setup.c | |
parent | 88de0be0c7335650326a1236bf6ca1ed265c0a1c (diff) |
[PATCH] ppc64: Make idle_loop a ppc_md function
This patch adds an idle member to the ppc_md structure and calls it from
cpu_idle(). If a platform leaves ppc_md.idle as null it will get the default
idle loop default_idle().
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc64/kernel/setup.c')
-rw-r--r-- | arch/ppc64/kernel/setup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ppc64/kernel/setup.c b/arch/ppc64/kernel/setup.c index d5e4866e9ac2..a278998ecb44 100644 --- a/arch/ppc64/kernel/setup.c +++ b/arch/ppc64/kernel/setup.c | |||
@@ -96,7 +96,6 @@ extern void udbg_init_maple_realmode(void); | |||
96 | extern unsigned long klimit; | 96 | extern unsigned long klimit; |
97 | 97 | ||
98 | extern void mm_init_ppc64(void); | 98 | extern void mm_init_ppc64(void); |
99 | extern int idle_setup(void); | ||
100 | extern void stab_initialize(unsigned long stab); | 99 | extern void stab_initialize(unsigned long stab); |
101 | extern void htab_initialize(void); | 100 | extern void htab_initialize(void); |
102 | extern void early_init_devtree(void *flat_dt); | 101 | extern void early_init_devtree(void *flat_dt); |
@@ -1081,8 +1080,9 @@ void __init setup_arch(char **cmdline_p) | |||
1081 | 1080 | ||
1082 | ppc_md.setup_arch(); | 1081 | ppc_md.setup_arch(); |
1083 | 1082 | ||
1084 | /* Select the correct idle loop for the platform. */ | 1083 | /* Use the default idle loop if the platform hasn't provided one. */ |
1085 | idle_setup(); | 1084 | if (NULL == ppc_md.idle_loop) |
1085 | ppc_md.idle_loop = default_idle; | ||
1086 | 1086 | ||
1087 | paging_init(); | 1087 | paging_init(); |
1088 | ppc64_boot_msg(0x15, "Setup Done"); | 1088 | ppc64_boot_msg(0x15, "Setup Done"); |