]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpuid: Replace set/clear_bit32()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 2 Nov 2017 12:22:35 +0000 (13:22 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 2 Nov 2017 13:56:43 +0000 (14:56 +0100)
commitbdb592625117fc3065840c765f1ce754a9ddc615
tree911df8b12caae00654eb039db69a55d3ee21067f
parenta06e0398b3074e65814d1e84068e5cb530ac780a
x86/cpuid: Replace set/clear_bit32()

Peter pointed out that the set/clear_bit32() variants are broken in various
aspects.

Replace them with open coded set/clear_bit() and type cast
cpu_info::x86_capability as it's done in all other places throughout x86.

Fixes: 0ff85a690a20 ("x86/cpuid: Add generic table for CPUID dependencies")
Reported-by: Peter Ziljstra <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andi Kleen <ak@linux.intel.com>
arch/x86/kernel/cpu/cpuid-deps.c