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 /include/asm-ppc64/machdep.h | |
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 'include/asm-ppc64/machdep.h')
-rw-r--r-- | include/asm-ppc64/machdep.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-ppc64/machdep.h b/include/asm-ppc64/machdep.h index 9cdad3ed1526..1e6ad4824132 100644 --- a/include/asm-ppc64/machdep.h +++ b/include/asm-ppc64/machdep.h | |||
@@ -140,8 +140,13 @@ struct machdep_calls { | |||
140 | unsigned long size, | 140 | unsigned long size, |
141 | pgprot_t vma_prot); | 141 | pgprot_t vma_prot); |
142 | 142 | ||
143 | /* Idle loop for this platform, leave empty for default idle loop */ | ||
144 | int (*idle_loop)(void); | ||
143 | }; | 145 | }; |
144 | 146 | ||
147 | extern int default_idle(void); | ||
148 | extern int native_idle(void); | ||
149 | |||
145 | extern struct machdep_calls ppc_md; | 150 | extern struct machdep_calls ppc_md; |
146 | extern char cmd_line[COMMAND_LINE_SIZE]; | 151 | extern char cmd_line[COMMAND_LINE_SIZE]; |
147 | 152 | ||