x86/cpufeature: Remove unused and seldomly used cpu_has_xx macros
authorBorislav Petkov <bp@suse.de>
Mon, 7 Dec 2015 09:39:41 +0000 (10:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 19 Dec 2015 10:49:55 +0000 (11:49 +0100)
commit362f924b64ba0f4be2ee0cb697690c33d40be721
treedcfba0fc2301d1b81ad2c7220ad7edd8e6166db7
parent39c06df4dc10a41de5fe706f4378ee5f09beba73
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>
24 files changed:
arch/x86/crypto/chacha20_glue.c
arch/x86/crypto/crc32c-intel_glue.c
arch/x86/include/asm/cmpxchg_32.h
arch/x86/include/asm/cmpxchg_64.h
arch/x86/include/asm/cpufeature.h
arch/x86/include/asm/xor_32.h
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/intel.c
arch/x86/kernel/cpu/intel_cacheinfo.c
arch/x86/kernel/cpu/mtrr/generic.c
arch/x86/kernel/cpu/mtrr/main.c
arch/x86/kernel/cpu/perf_event_amd.c
arch/x86/kernel/cpu/perf_event_amd_uncore.c
arch/x86/kernel/fpu/init.c
arch/x86/kernel/hw_breakpoint.c
arch/x86/kernel/smpboot.c
arch/x86/kernel/vm86_32.c
arch/x86/mm/setup_nx.c
drivers/char/hw_random/via-rng.c
drivers/crypto/padlock-aes.c
drivers/crypto/padlock-sha.c
drivers/iommu/intel_irq_remapping.c
fs/btrfs/disk-io.c