forked from Minki/linux
[PATCH] x86-64: Remove unused GET_APIC_VERSION call from clear_local_APIC
Remove unused GET_APIC_VERSION call from clear_local_APIC() and __setup_APIC_LVTT(). Reported by D Binderman <dcb314@hotmail.com>. Cc: Andi Kleen <ak@suse.de> Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: David Rientjes <rientjes@cs.washington.edu> Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
parent
6df0532eef
commit
86bd58bf4c
@ -140,7 +140,6 @@ void clear_local_APIC(void)
|
|||||||
apic_write(APIC_LVTERR, APIC_LVT_MASKED);
|
apic_write(APIC_LVTERR, APIC_LVT_MASKED);
|
||||||
if (maxlvt >= 4)
|
if (maxlvt >= 4)
|
||||||
apic_write(APIC_LVTPC, APIC_LVT_MASKED);
|
apic_write(APIC_LVTPC, APIC_LVT_MASKED);
|
||||||
v = GET_APIC_VERSION(apic_read(APIC_LVR));
|
|
||||||
apic_write(APIC_ESR, 0);
|
apic_write(APIC_ESR, 0);
|
||||||
apic_read(APIC_ESR);
|
apic_read(APIC_ESR);
|
||||||
}
|
}
|
||||||
@ -736,10 +735,9 @@ void __init init_apic_mappings(void)
|
|||||||
|
|
||||||
static void __setup_APIC_LVTT(unsigned int clocks)
|
static void __setup_APIC_LVTT(unsigned int clocks)
|
||||||
{
|
{
|
||||||
unsigned int lvtt_value, tmp_value, ver;
|
unsigned int lvtt_value, tmp_value;
|
||||||
int cpu = smp_processor_id();
|
int cpu = smp_processor_id();
|
||||||
|
|
||||||
ver = GET_APIC_VERSION(apic_read(APIC_LVR));
|
|
||||||
lvtt_value = APIC_LVT_TIMER_PERIODIC | LOCAL_TIMER_VECTOR;
|
lvtt_value = APIC_LVT_TIMER_PERIODIC | LOCAL_TIMER_VECTOR;
|
||||||
|
|
||||||
if (cpu_isset(cpu, timer_interrupt_broadcast_ipi_mask))
|
if (cpu_isset(cpu, timer_interrupt_broadcast_ipi_mask))
|
||||||
|
Loading…
Reference in New Issue
Block a user