Re: [PATCH 3/6] x86: simplify _acpi_map_lsapic()

2013-09-01 Thread Hanjun Guo
On 2013-9-1 4:14, Rafael J. Wysocki wrote: > On Saturday, August 31, 2013 06:15:58 PM Hanjun Guo wrote: [...] >> +static int acpi_register_lapic(int id, u8 enabled) >> { >> unsigned int ver = 0; >> >> if (id >= (MAX_LOCAL_APIC-1)) { >> printk(KERN_INFO PREFIX "skipped

Re: [PATCH 3/6] x86: simplify _acpi_map_lsapic()

2013-09-01 Thread Hanjun Guo
On 2013-9-1 4:14, Rafael J. Wysocki wrote: On Saturday, August 31, 2013 06:15:58 PM Hanjun Guo wrote: [...] +static int acpi_register_lapic(int id, u8 enabled) { unsigned int ver = 0; if (id = (MAX_LOCAL_APIC-1)) { printk(KERN_INFO PREFIX skipped apicid that is too

Re: [PATCH 3/6] x86: simplify _acpi_map_lsapic()

2013-08-31 Thread Rafael J. Wysocki
On Saturday, August 31, 2013 06:15:58 PM Hanjun Guo wrote: > From: Jiang Liu > > In acpi_register_lapic(), it will generates a new logical cpu > number and maps to the local APIC id, this logical cpu number > can be returned to simplify _acpi_map_lsapic() implementation. > > Signed-off-by:

[PATCH 3/6] x86: simplify _acpi_map_lsapic()

2013-08-31 Thread Hanjun Guo
From: Jiang Liu In acpi_register_lapic(), it will generates a new logical cpu number and maps to the local APIC id, this logical cpu number can be returned to simplify _acpi_map_lsapic() implementation. Signed-off-by: Jiang Liu Signed-off-by: Hanjun Guo --- arch/x86/include/asm/mpspec.h |

[PATCH 3/6] x86: simplify _acpi_map_lsapic()

2013-08-31 Thread Hanjun Guo
From: Jiang Liu jiang@huawei.com In acpi_register_lapic(), it will generates a new logical cpu number and maps to the local APIC id, this logical cpu number can be returned to simplify _acpi_map_lsapic() implementation. Signed-off-by: Jiang Liu jiang@huawei.com Signed-off-by: Hanjun Guo

Re: [PATCH 3/6] x86: simplify _acpi_map_lsapic()

2013-08-31 Thread Rafael J. Wysocki
On Saturday, August 31, 2013 06:15:58 PM Hanjun Guo wrote: From: Jiang Liu jiang@huawei.com In acpi_register_lapic(), it will generates a new logical cpu number and maps to the local APIC id, this logical cpu number can be returned to simplify _acpi_map_lsapic() implementation.