diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-01-15 21:22:22 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-01-22 15:10:55 +0100 |
commit | 12e189d3cfa4c64de758bde18626184bf32c65fc (patch) | |
tree | cdfe176972518a498d1b868ad95242a69d415eb4 /arch/x86/include/asm/apic.h | |
parent | 62e61633daeb0b53f0506aa6e170e2e4cc75cd65 (diff) | |
download | linux-12e189d3cfa4c64de758bde18626184bf32c65fc.tar.gz linux-12e189d3cfa4c64de758bde18626184bf32c65fc.tar.xz |
x86/x2apic: Add proper state tracking
Having 3 different variables to track the state is just silly and
error prone. Add a proper state tracking variable which covers the
three possible states: ON/OFF/DISABLED.
We cannot use x2apic_mode for this as this would require to change all
users of x2apic_mode with explicit comparisons for a state value
instead of treating it as boolean.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Borislav Petkov <bp@alien8.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Tony Luck <tony.luck@intel.com>
Link: http://lkml.kernel.org/r/20150115211702.955392443@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include/asm/apic.h')
0 files changed, 0 insertions, 0 deletions