H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_IDLE_H |
| 2 | #define _ASM_X86_IDLE_H |
Andi Kleen | 95833c8 | 2006-01-11 22:44:36 +0100 | [diff] [blame] | 3 | |
| 4 | #define IDLE_START 1 |
| 5 | #define IDLE_END 2 |
| 6 | |
| 7 | struct notifier_block; |
| 8 | void idle_notifier_register(struct notifier_block *n); |
Linus Torvalds | 5b34653 | 2008-10-23 10:22:01 -0700 | [diff] [blame] | 9 | void idle_notifier_unregister(struct notifier_block *n); |
Andi Kleen | 95833c8 | 2006-01-11 22:44:36 +0100 | [diff] [blame] | 10 | |
Hiroshi Shimamoto | 8f2466f | 2008-12-08 19:19:07 -0800 | [diff] [blame] | 11 | #ifdef CONFIG_X86_64 |
Andi Kleen | 95833c8 | 2006-01-11 22:44:36 +0100 | [diff] [blame] | 12 | void enter_idle(void); |
| 13 | void exit_idle(void); |
Hiroshi Shimamoto | 8f2466f | 2008-12-08 19:19:07 -0800 | [diff] [blame] | 14 | #else /* !CONFIG_X86_64 */ |
| 15 | static inline void enter_idle(void) { } |
| 16 | static inline void exit_idle(void) { } |
Richard Weinberger | 90e2401 | 2012-03-25 23:00:04 +0200 | [diff] [blame] | 17 | static inline void __exit_idle(void) { } |
Hiroshi Shimamoto | 8f2466f | 2008-12-08 19:19:07 -0800 | [diff] [blame] | 18 | #endif /* CONFIG_X86_64 */ |
Andi Kleen | 95833c8 | 2006-01-11 22:44:36 +0100 | [diff] [blame] | 19 | |
Len Brown | 02c68a0 | 2011-04-01 16:59:53 -0400 | [diff] [blame] | 20 | void amd_e400_remove_cpu(int cpu); |
Thomas Gleixner | 4faac97 | 2008-09-22 18:54:29 +0200 | [diff] [blame] | 21 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 22 | #endif /* _ASM_X86_IDLE_H */ |