x86/cpuid: Replace set/clear_bit32()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 2 Nov 2017 12:22:35 +0000 (13:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:26:19 +0000 (14:26 +0100)
commit3243ae92926c4ad3a7f9596952542c6803e69050
tree61e3d7e34772b52d63534029eb36d1e13f8a7bc0
parentb36c2c3ab339f50fb60f095ee508fc3376bdb1d6
x86/cpuid: Replace set/clear_bit32()

commit 06dd688ddda5819025e014b79aea9af6ab475fa2 upstream.

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: 0b00de857a64 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/cpuid-deps.c