]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit06dd688ddda5819025e014b79aea9af6ab475fa2
tree911df8b12caae00654eb039db69a55d3ee21067f
parentc128dbfa0f879f8ce7b79054037889b0b2240728
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: 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>
arch/x86/kernel/cpu/cpuid-deps.c