Re: [PATCH] fix maxcpus=1 oops in show_stat()

2007-08-31 Thread Alexey Dobriyan
On Fri, Aug 31, 2007 at 04:26:50AM +0100, Hugh Dickins wrote: > --- 2.6.23-rc4/init/main.c > +++ linux/init/main.c > @@ -397,10 +397,6 @@ static void __init smp_init(void) > { > unsigned int cpu; > > -#ifndef CONFIG_HOTPLUG_CPU > - cpu_possible_map = cpu_present_map; > -#endif > - >

Re: [PATCH] fix maxcpus=1 oops in show_stat()

2007-08-30 Thread Linus Torvalds
On Fri, 31 Aug 2007, Hugh Dickins wrote: > > So stay safe for now and just revert those #ifndef CONFIG_HOTPLUG_CPU > optimizations in rc1's commit. Thanks for the debugging, applied. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[PATCH] fix maxcpus=1 oops in show_stat()

2007-08-30 Thread Hugh Dickins
Alexey Dobriyan reports that maxcpus=1 is still broken in 2.6.23-rc4: if CONFIG_HOTPLUG_CPU is not set, x86_64 bootup oopses in show_stat() - for_each_possible_cpu accesses a per-cpu area which was never set up. Alexey identified commit 61ec7567db103d537329b0db9a887db570431ff4 (ACPI: boot correctl