2008-10-23 09:26:29 +04:00
|
|
|
#ifndef _ASM_X86_IDLE_H
|
|
|
|
#define _ASM_X86_IDLE_H
|
2006-01-12 00:44:36 +03:00
|
|
|
|
|
|
|
#define IDLE_START 1
|
|
|
|
#define IDLE_END 2
|
|
|
|
|
|
|
|
struct notifier_block;
|
|
|
|
void idle_notifier_register(struct notifier_block *n);
|
2008-10-09 22:45:22 +04:00
|
|
|
void idle_notifier_unregister(struct notifier_block *n);
|
2006-01-12 00:44:36 +03:00
|
|
|
|
2008-12-09 06:19:07 +03:00
|
|
|
#ifdef CONFIG_X86_64
|
2006-01-12 00:44:36 +03:00
|
|
|
void enter_idle(void);
|
|
|
|
void exit_idle(void);
|
2008-12-09 06:19:07 +03:00
|
|
|
#else /* !CONFIG_X86_64 */
|
|
|
|
static inline void enter_idle(void) { }
|
|
|
|
static inline void exit_idle(void) { }
|
|
|
|
#endif /* CONFIG_X86_64 */
|
2006-01-12 00:44:36 +03:00
|
|
|
|
2008-09-22 20:54:29 +04:00
|
|
|
void c1e_remove_cpu(int cpu);
|
|
|
|
|
2008-10-23 09:26:29 +04:00
|
|
|
#endif /* _ASM_X86_IDLE_H */
|