Bug 11669

Summary: when CPU hotplugging is disabled, nr_cpu_ids does not get set properly during boot
Product: Platform Specific/Hardware Reporter: Chuck Ebbert (cebbert)
Component: x86-64Assignee: platform_x86_64 (platform_x86_64)
Status: CLOSED CODE_FIX    
Severity: normal CC: akpm, bunk, rjw
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.27-rc7-git5 Subsystem:
Regression: Yes Bisected commit-id:
Bug Depends on:    
Bug Blocks: 11167    
Attachments: Patch to revert commit 4a7017370aa0a94a00ae5b5705e9169cdcae5fb8
Patch to fix the nr_cpu_ids problem properly

Description Chuck Ebbert 2008-09-29 11:40:06 UTC
caused by commit 4a7017370aa0a94a00ae5b5705e9169cdcae5fb8, which was the wrong fix for a compile error

With NR_CPUS set to 512 and CPU hotplug disabled, nr_cpu_ids gets set to 512 during boot on a uniprocessor machine.

Patches to fix this follow.
Comment 1 Chuck Ebbert 2008-09-29 11:40:54 UTC
Created attachment 18105 [details]
Patch to revert commit 4a7017370aa0a94a00ae5b5705e9169cdcae5fb8

Patch 1/2
Comment 2 Chuck Ebbert 2008-09-29 11:41:53 UTC
Created attachment 18106 [details]
Patch to fix the nr_cpu_ids problem properly

Patch 2/2
Comment 3 Andrew Morton 2008-10-03 00:02:39 UTC
grump.  please don't send patches via bugzilla - they're a pita to
process.
Comment 4 Adrian Bunk 2008-10-08 05:14:11 UTC
Subject         : when CPU hotplugging is disabled, nr_cpu_ids does not get set properly during boot
Submitter       : Chuck Ebbert <cebbert@redhat.com>
References      : http://bugzilla.kernel.org/show_bug.cgi?id=11669
Handled-By      : Chuck Ebbert <cebbert@redhat.com>
Patch           : http://bugzilla.kernel.org/attachment.cgi?id=18105
                  http://bugzilla.kernel.org/attachment.cgi?id=18106
Comment 5 Rafael J. Wysocki 2008-10-26 15:14:00 UTC
Fixed by commit 14adf855baefad5ac3b545be23a64e6b61d6b74a.