diff options
author | Andi Kleen <ak@suse.de> | 2007-05-02 13:27:12 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-05-02 13:27:12 -0400 |
commit | f039b754714a422959027cb18bb33760eb8153f0 (patch) | |
tree | c5f28502adf35f5ea7738a974cd7c4fc81e1dd21 /include | |
parent | c169859d6dfc7471ef9f2dbd720936e17906a084 (diff) |
[PATCH] x86: Don't use MWAIT on AMD Family 10
It doesn't put the CPU into deeper sleep states, so it's better to use the standard
idle loop to save power. But allow to reenable it anyways for benchmarking.
I also removed the obsolete idle=halt on i386
Cc: andreas.herrmann@amd.com
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/processor.h | 2 | ||||
-rw-r--r-- | include/asm-x86_64/proto.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h index 9d895cc2f312..882d3f8fbbac 100644 --- a/include/asm-i386/processor.h +++ b/include/asm-i386/processor.h | |||
@@ -779,4 +779,6 @@ extern int sysenter_setup(void); | |||
779 | extern void cpu_set_gdt(int); | 779 | extern void cpu_set_gdt(int); |
780 | extern void cpu_init(void); | 780 | extern void cpu_init(void); |
781 | 781 | ||
782 | extern int force_mwait; | ||
783 | |||
782 | #endif /* __ASM_I386_PROCESSOR_H */ | 784 | #endif /* __ASM_I386_PROCESSOR_H */ |
diff --git a/include/asm-x86_64/proto.h b/include/asm-x86_64/proto.h index 3f8f285138d2..98063bcb3b33 100644 --- a/include/asm-x86_64/proto.h +++ b/include/asm-x86_64/proto.h | |||
@@ -119,6 +119,8 @@ extern int gsi_irq_sharing(int gsi); | |||
119 | 119 | ||
120 | extern void smp_local_timer_interrupt(void); | 120 | extern void smp_local_timer_interrupt(void); |
121 | 121 | ||
122 | extern int force_mwait; | ||
123 | |||
122 | long do_arch_prctl(struct task_struct *task, int code, unsigned long addr); | 124 | long do_arch_prctl(struct task_struct *task, int code, unsigned long addr); |
123 | 125 | ||
124 | void i8254_timer_resume(void); | 126 | void i8254_timer_resume(void); |