mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Cc: David Sterba <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Matt Mackall <[email protected]> Cc: Chris Mason <[email protected]> Cc: Josef Bacik <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
39c06df4dc
commit
362f924b64
24 changed files with 48 additions and 68 deletions
|
|
@ -753,7 +753,7 @@ static inline void set_irq_posting_cap(void)
|
|||
* should have X86_FEATURE_CX16 support, this has been confirmed
|
||||
* with Intel hardware guys.
|
||||
*/
|
||||
if ( cpu_has_cx16 )
|
||||
if (boot_cpu_has(X86_FEATURE_CX16))
|
||||
intel_irq_remap_ops.capability |= 1 << IRQ_POSTING_CAP;
|
||||
|
||||
for_each_iommu(iommu, drhd)
|
||||
|
|
|
|||
Loading…
Reference in a new issue