aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/common.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2008-01-30 07:33:21 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:33:21 -0500
commit191679fdfa63342752ff6a094a2522ae939b8d0c (patch)
treed1d3af246c10ff5201450c270fe3bb9f1bd2bd6f /arch/x86/kernel/cpu/common.c
parent404ee5b14b68d3cba287c2596588b83790c49f7b (diff)
x86: add noclflush option
To disable CLFLUSH usage, especially in change_page_attr(). Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r--arch/x86/kernel/cpu/common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index dfc9563fc4f0..56b7ea8e6c79 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -542,6 +542,13 @@ void __cpuinit detect_ht(struct cpuinfo_x86 *c)
542} 542}
543#endif 543#endif
544 544
545static __init int setup_noclflush(char *arg)
546{
547 setup_clear_cpu_cap(X86_FEATURE_CLFLSH);
548 return 1;
549}
550__setup("noclflush", setup_noclflush);
551
545void __cpuinit print_cpu_info(struct cpuinfo_x86 *c) 552void __cpuinit print_cpu_info(struct cpuinfo_x86 *c)
546{ 553{
547 char *vendor = NULL; 554 char *vendor = NULL;