diff options
author | Borislav Petkov <bp@suse.de> | 2015-12-07 04:39:41 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-12-19 05:49:55 -0500 |
commit | 362f924b64ba0f4be2ee0cb697690c33d40be721 (patch) | |
tree | dcfba0fc2301d1b81ad2c7220ad7edd8e6166db7 /arch/x86/kernel/fpu/init.c | |
parent | 39c06df4dc10a41de5fe706f4378ee5f09beba73 (diff) |
x86/cpufeature: Remove unused and seldomly used cpu_has_xx macros
Those are stupid and code should use static_cpu_has_safe() or
boot_cpu_has() instead. Kill the least used and unused ones.
The remaining ones need more careful inspection before a conversion can
happen. On the TODO.
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1449481182-27541-4-git-send-email-bp@alien8.de
Cc: David Sterba <dsterba@suse.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Chris Mason <clm@fb.com>
Cc: Josef Bacik <jbacik@fb.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/fpu/init.c')
-rw-r--r-- | arch/x86/kernel/fpu/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/fpu/init.c b/arch/x86/kernel/fpu/init.c index be39b5fde4b9..22abea04731e 100644 --- a/arch/x86/kernel/fpu/init.c +++ b/arch/x86/kernel/fpu/init.c | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | static void fpu__init_cpu_ctx_switch(void) | 13 | static void fpu__init_cpu_ctx_switch(void) |
14 | { | 14 | { |
15 | if (!cpu_has_eager_fpu) | 15 | if (!boot_cpu_has(X86_FEATURE_EAGER_FPU)) |
16 | stts(); | 16 | stts(); |
17 | else | 17 | else |
18 | clts(); | 18 | clts(); |
@@ -287,7 +287,7 @@ static void __init fpu__init_system_ctx_switch(void) | |||
287 | current_thread_info()->status = 0; | 287 | current_thread_info()->status = 0; |
288 | 288 | ||
289 | /* Auto enable eagerfpu for xsaveopt */ | 289 | /* Auto enable eagerfpu for xsaveopt */ |
290 | if (cpu_has_xsaveopt && eagerfpu != DISABLE) | 290 | if (boot_cpu_has(X86_FEATURE_XSAVEOPT) && eagerfpu != DISABLE) |
291 | eagerfpu = ENABLE; | 291 | eagerfpu = ENABLE; |
292 | 292 | ||
293 | if (xfeatures_mask & XFEATURE_MASK_EAGER) { | 293 | if (xfeatures_mask & XFEATURE_MASK_EAGER) { |