projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fece83
)
x86, x2apic: Preserve high 32-bits of IA32_APIC_BASE MSR
author
Naga Chumbalkar
<
[email protected]
>
Tue, 12 Jul 2011 05:59:07 +0000
(
05:59
+0000)
committer
H. Peter Anvin
<
[email protected]
>
Tue, 12 Jul 2011 21:33:49 +0000
(14:33 -0700)
If there's no special reason to zero-out the "high" 32-bits of the IA32_APIC_BASE
MSR, let's preserve it.
The x2APIC Specification doesn't explicitly state any such requirement. (Sec 2.2
in: http://www.intel.com/Assets/PDF/manual/318148.pdf).
Signed-off-by: Naga Chumbalkar <
[email protected]
>
Link:
http://lkml.kernel.org/r/20110712055831.2498.78521.sendpatchset@nchumbalkar.americas.cpqcorp.net
Reviewed-by: Cyrill Gorcunov <
[email protected]
>
Reviewed-by: Suresh Siddha <
[email protected]
>
Signed-off-by: H. Peter Anvin <
[email protected]
>
arch/x86/kernel/apic/apic.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/apic/apic.c
b/arch/x86/kernel/apic/apic.c
index b9338b8cf420ca94e37c7da64dc1fa1910f19f91..f7b0c7a1dfaa840298155d58e346ffd95dac14b6 100644
(file)
--- a/
arch/x86/kernel/apic/apic.c
+++ b/
arch/x86/kernel/apic/apic.c
@@
-1429,7
+1429,7
@@
void enable_x2apic(void)
rdmsr(MSR_IA32_APICBASE, msr, msr2);
if (!(msr & X2APIC_ENABLE)) {
printk_once(KERN_INFO "Enabling x2apic\n");
- wrmsr(MSR_IA32_APICBASE, msr | X2APIC_ENABLE,
0
);
+ wrmsr(MSR_IA32_APICBASE, msr | X2APIC_ENABLE,
msr2
);
}
}
#endif /* CONFIG_X86_X2APIC */