Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86: Remove unused variable disable_x2apic

setup_nox2apic() is writing 1 to disable_x2apic but no one is reading it.

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
LKML-Reference: <1246554239.2242.27.camel@jaswinder.satnam>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Jaswinder Singh Rajput and committed by
Ingo Molnar
23d0cd8e d3ac8815

-2
-2
arch/x86/kernel/apic/apic.c
··· 140 140 #ifdef CONFIG_X86_X2APIC 141 141 /* x2apic enabled before OS handover */ 142 142 static int x2apic_preenabled; 143 - static int disable_x2apic; 144 143 static __init int setup_nox2apic(char *str) 145 144 { 146 145 if (x2apic_enabled()) { ··· 148 149 return 0; 149 150 } 150 151 151 - disable_x2apic = 1; 152 152 setup_clear_cpu_cap(X86_FEATURE_X2APIC); 153 153 return 0; 154 154 }