Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759862AbXELSNS (ORCPT ); Sat, 12 May 2007 14:13:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754754AbXELSNB (ORCPT ); Sat, 12 May 2007 14:13:01 -0400 Received: from mail.screens.ru ([213.234.233.54]:42848 "EHLO mail.screens.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755800AbXELSNA (ORCPT ); Sat, 12 May 2007 14:13:00 -0400 Date: Sat, 12 May 2007 22:12:54 +0400 From: Oleg Nesterov To: Andi Kleen Cc: Andrew Morton , Christoph Lameter , Peter Zijlstra , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Ingo Molnar , Thomas Gleixner , Nick Piggin Subject: Re: [PATCH 1/2] scalable rw_mutex Message-ID: <20070512181254.GA331@tv-sign.ru> References: <20070511131541.992688403@chello.nl> <20070511132321.895740140@chello.nl> <20070511093108.495feb70.akpm@linux-foundation.org> <20070511110522.ed459635.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 32 On 05/12, Andi Kleen wrote: > > --- linux-2.6.21-git2-net.orig/kernel/cpu.c > +++ linux-2.6.21-git2-net/kernel/cpu.c > @@ -26,6 +26,10 @@ static __cpuinitdata RAW_NOTIFIER_HEAD(c > */ > static int cpu_hotplug_disabled; > > +/* Contains any CPUs that were ever online at some point. > + No guarantee they were fully initialized though */ > +cpumask_t cpu_everonline_map; > + > #ifdef CONFIG_HOTPLUG_CPU > > /* Crappy recursive lock-takers in cpufreq! Complain loudly about idiots */ > @@ -212,6 +216,8 @@ static int __cpuinit _cpu_up(unsigned in > if (cpu_online(cpu) || !cpu_present(cpu)) > return -EINVAL; > > + cpu_set(cpu, cpu_everonline_map); > + This also allows us to de-uglify workqueue.c a little bit, it uses a home-grown cpu_populated_map. Oleg. - 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/