mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
[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>
This commit is contained in:
committed by
Linus Torvalds
parent
88de0be0c7
commit
fd899c0cc7
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user