diff options
author | Andi Kleen <ak@suse.de> | 2008-01-30 07:33:21 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:21 -0500 |
commit | 191679fdfa63342752ff6a094a2522ae939b8d0c (patch) | |
tree | d1d3af246c10ff5201450c270fe3bb9f1bd2bd6f /arch/x86/kernel/setup_64.c | |
parent | 404ee5b14b68d3cba287c2596588b83790c49f7b (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/setup_64.c')
-rw-r--r-- | arch/x86/kernel/setup_64.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index df159520bbd2..cb9b8a90c094 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c | |||
@@ -1032,6 +1032,13 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c) | |||
1032 | 1032 | ||
1033 | } | 1033 | } |
1034 | 1034 | ||
1035 | static __init int setup_noclflush(char *arg) | ||
1036 | { | ||
1037 | setup_clear_cpu_cap(X86_FEATURE_CLFLSH); | ||
1038 | return 1; | ||
1039 | } | ||
1040 | __setup("noclflush", setup_noclflush); | ||
1041 | |||
1035 | void __cpuinit print_cpu_info(struct cpuinfo_x86 *c) | 1042 | void __cpuinit print_cpu_info(struct cpuinfo_x86 *c) |
1036 | { | 1043 | { |
1037 | if (c->x86_model_id[0]) | 1044 | if (c->x86_model_id[0]) |