On Wed, Aug 10, 2005 at 05:43:23PM -0700, yhlu wrote: > Yes, I mean more aggressive > > static void __init smp_init(void) > { > unsigned int i; > > /* FIXME: This should be done in userspace --RR */ > for_each_present_cpu(i) { > if (num_online_cpus() >= max_cpus) > break; > if (!cpu_online(i)) > cpu_up(i); > } > > > let cpu_up take one array instead of one int. It can be done already by just not starting the CPUs and then do it multithreaded from user space using sysfs with the CPU hotplug infrastructure. Unfortunately cpu_up right now has a global semaphore, so it won't save you any time. However it could be done in parallel with other startup jobs. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- From: yhlu <yhlu.kernel@gmail.com>
- Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- References:
- RE: 2.6.13-rc2 with dual way dual core ck804 MB
- From: YhLu <YhLu@tyan.com>
- Re: 2.6.13-rc2 with dual way dual core ck804 MB
- From: Mike Waychison <mikew@google.com>
- Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- From: Andi Kleen <ak@suse.de>
- Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- From: yhlu <yhlu.kernel@gmail.com>
- Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- From: Andi Kleen <ak@suse.de>
- Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- From: yhlu <yhlu.kernel@gmail.com>
- Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- From: yhlu <yhlu.kernel@gmail.com>
- Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- From: Andi Kleen <ak@suse.de>
- Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- From: yhlu <yhlu.kernel@gmail.com>
- RE: 2.6.13-rc2 with dual way dual core ck804 MB
- Prev by Date: Question about SO_LINGER
- Next by Date: Re: fcntl(F_GETLEASE) semantics??
- Previous by thread: Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- Next by thread: Re: [discuss] Re: 2.6.13-rc2 with dual way dual core ck804 MB
- Index(es):
