[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.11.1501221407490.5526@nanos>
Date: Thu, 22 Jan 2015 14:08:30 +0100 (CET)
From: Thomas Gleixner <tglx@...utronix.de>
To: Borislav Petkov <bp@...en8.de>
cc: LKML <linux-kernel@...r.kernel.org>,
Jiang Liu <jiang.liu@...ux.intel.com>,
Joerg Roedel <joro@...tes.org>, x86@...nel.org,
Tony Luck <tony.luck@...el.com>
Subject: Re: [patch 11/23] x86/x2apic: Split enable and setup function
On Fri, 16 Jan 2015, Borislav Petkov wrote:
> On Thu, Jan 15, 2015 at 09:22:26PM -0000, Thomas Gleixner wrote:
> > +/* Called from cpu_init() to enable x2apic on (secondary) cpus */
> > +void x2apic_setup(void)
> > +{
> > + /*
> > + * If x2apic is not in ON state, disable it if already enabled
> > + * from BIOS.
> > + */
> > + if (x2apic_state != X2APIC_ON) {
> > + if (cpu_has_apic)
>
> Let's move this test into disable_x2apic() so that callers don't have to
> pay attention.
Si, senor!
> > x86_configure_nx();
> > - enable_x2apic();
> > + x2apic_setup();
>
> 64-bit only?
>
> I'd guess so since the original call enable_x2apic() is 64-bit only too
> but why?
Don't ask me. :)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists