mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
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>
This commit is contained in:
parent
d3ac88157c
commit
23d0cd8e71
1 changed files with 0 additions and 2 deletions
|
@ -140,7 +140,6 @@ int x2apic_mode;
|
||||||
#ifdef CONFIG_X86_X2APIC
|
#ifdef CONFIG_X86_X2APIC
|
||||||
/* x2apic enabled before OS handover */
|
/* x2apic enabled before OS handover */
|
||||||
static int x2apic_preenabled;
|
static int x2apic_preenabled;
|
||||||
static int disable_x2apic;
|
|
||||||
static __init int setup_nox2apic(char *str)
|
static __init int setup_nox2apic(char *str)
|
||||||
{
|
{
|
||||||
if (x2apic_enabled()) {
|
if (x2apic_enabled()) {
|
||||||
|
@ -149,7 +148,6 @@ static __init int setup_nox2apic(char *str)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
disable_x2apic = 1;
|
|
||||||
setup_clear_cpu_cap(X86_FEATURE_X2APIC);
|
setup_clear_cpu_cap(X86_FEATURE_X2APIC);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue