Skip to content

Commit

Permalink
x86: apic - lapic_resume 32bit - unification fix
Browse files Browse the repository at this point in the history
Just add parenthesis to be identical of current
64bit implementation (so diff will not complain).

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Aug 19, 2008
1 parent 3415610 commit e75bedf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/apic_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,7 @@ static int lapic_resume(struct sys_device *dev)
enable_x2apic();
else
#endif
{
/*
* Make sure the APICBASE points to the right address
*
Expand All @@ -1656,6 +1657,7 @@ static int lapic_resume(struct sys_device *dev)
l &= ~MSR_IA32_APICBASE_BASE;
l |= MSR_IA32_APICBASE_ENABLE | mp_lapic_addr;
wrmsr(MSR_IA32_APICBASE, l, h);
}

apic_write(APIC_LVTERR, ERROR_APIC_VECTOR | APIC_LVT_MASKED);
apic_write(APIC_ID, apic_pm_state.apic_id);
Expand Down

0 comments on commit e75bedf

Please sign in to comment.