From: Thomas Gleixner Date: Thu, 15 Jan 2015 21:22:22 +0000 (+0000) Subject: x86/x2apic: Add proper state tracking X-Git-Tag: fixes-v4.0-rc1~177^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12e189d3cfa4c64de758bde18626184bf32c65fc;p=pandora-kernel.git 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 Acked-by: Borislav Petkov Cc: Jiang Liu Cc: Joerg Roedel Cc: Tony Luck Link: http://lkml.kernel.org/r/20150115211702.955392443@linutronix.de Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed