Re: [patch 01/23] x86/apic: Avoid open coded x2apic detection

2015-01-23 Thread Thomas Gleixner
On Thu, 22 Jan 2015, Thomas Gleixner wrote: > On Fri, 16 Jan 2015, Borislav Petkov wrote: > > > > #define x2apic_supported() (cpu_has_x2apic) > > > > which does the cpufeature test. > > > > Can we agree on one interface only and simplify this a bit more? > > I think I do that later on, but

Re: [patch 01/23] x86/apic: Avoid open coded x2apic detection

2015-01-22 Thread Thomas Gleixner
On Fri, 16 Jan 2015, Borislav Petkov wrote: > On Thu, Jan 15, 2015 at 09:22:09PM -, Thomas Gleixner wrote: > > enable_IR_x2apic() grew a open coded x2apic detection. Implement a > > proper helper function which shares the code with the already existing > > x2apic_enabled(). > > > > Signed-off-

Re: [patch 01/23] x86/apic: Avoid open coded x2apic detection

2015-01-16 Thread Borislav Petkov
On Thu, Jan 15, 2015 at 09:22:09PM -, Thomas Gleixner wrote: > enable_IR_x2apic() grew a open coded x2apic detection. Implement a > proper helper function which shares the code with the already existing > x2apic_enabled(). > > Signed-off-by: Thomas Gleixner > --- > arch/x86/include/asm/apic.

[patch 01/23] x86/apic: Avoid open coded x2apic detection

2015-01-15 Thread Thomas Gleixner
enable_IR_x2apic() grew a open coded x2apic detection. Implement a proper helper function which shares the code with the already existing x2apic_enabled(). Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/apic.h | 18 +- arch/x86/kernel/apic/apic.c |5 + 2 files