Commit bf61d128 authored by Ingo Molnar's avatar Ingo Molnar

[PATCH] Avoid writing the APIC ID register

A small birdie tells us that in the long run it may not be a good idea
to write the APIC ID register.  It might be read-only in some
hypothetical situation down the road.
parent 13d02fd8
...@@ -248,12 +248,6 @@ int __init verify_local_APIC(void) ...@@ -248,12 +248,6 @@ int __init verify_local_APIC(void)
*/ */
reg0 = apic_read(APIC_ID); reg0 = apic_read(APIC_ID);
Dprintk("Getting ID: %x\n", reg0); Dprintk("Getting ID: %x\n", reg0);
apic_write(APIC_ID, reg0 ^ APIC_ID_MASK);
reg1 = apic_read(APIC_ID);
Dprintk("Getting ID: %x\n", reg1);
apic_write(APIC_ID, reg0);
if (reg1 != (reg0 ^ APIC_ID_MASK))
return 0;
/* /*
* The next two are just to see if we have sane values. * The next two are just to see if we have sane values.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment