diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2005-07-08 02:56:28 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-08 03:23:40 +0200 |
commit | fd899c0cc725387992ccfc83fb6f70505c36cbeb (patch) | |
tree | 0de5d3960c7e7247638c962d7913acec1ce2e9fe /include/asm-ppc64 | |
parent | [PATCH] hvc_console: Use hvc_get_chars in hvsi code (diff) | |
download | linux-fd899c0cc725387992ccfc83fb6f70505c36cbeb.tar.xz linux-fd899c0cc725387992ccfc83fb6f70505c36cbeb.zip |
[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')
-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 { unsigned long size, pgprot_t vma_prot); + /* Idle loop for this platform, leave empty for default idle loop */ + int (*idle_loop)(void); }; +extern int default_idle(void); +extern int native_idle(void); + extern struct machdep_calls ppc_md; extern char cmd_line[COMMAND_LINE_SIZE]; |