Re: [patch 4/5] x86, x2apic: allow "nox2apic" to disable x2apicmode setup by bios

From: Suresh Siddha
Date: Fri Dec 23 2011 - 13:56:24 EST


On Wed, 2011-12-21 at 23:24 -0800, Yinghai Lu wrote:
> On Wed, Dec 21, 2011 at 5:45 PM, Suresh Siddha
> <suresh.b.siddha@xxxxxxxxx> wrote:
>
> > @@ -1453,12 +1462,17 @@ static void disable_x2apic(void)
> > if (msr & X2APIC_ENABLE) {
> > u32 x2apic_id = read_apic_id();
> >
> > - if (x2apic_id > 255)
> > - panic("Can not disable x2apic, id: %08x\n", x2apic_id);
> > + if (x2apic_id >= 255)
> > + panic("Cannot disable x2apic, id: %08x\n", x2apic_id);
>
> can not be applied cleanly.
>
> update it a little bit.
>
> need to use attached one to replace 4/5.
>

Thanks Yinghai. updated patch look good.

Ingo, can you please queue this series to -tip?

thanks,
suresh

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/