From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268249AbUH2Rve (ORCPT ); Sun, 29 Aug 2004 13:51:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268250AbUH2Rve (ORCPT ); Sun, 29 Aug 2004 13:51:34 -0400 Received: from holomorphy.com ([207.189.100.168]:65454 "EHLO holomorphy.com") by vger.kernel.org with ESMTP id S268249AbUH2RvO (ORCPT ); Sun, 29 Aug 2004 13:51:14 -0400 Date: Sun, 29 Aug 2004 10:50:58 -0700 From: William Lee Irwin III To: James Bottomley Cc: Jesse Barnes , Andrew Morton , Linus Torvalds , Matthew Dobson , Nick Piggin , Linux Kernel Subject: Re: SMP Panic caused by [PATCH] sched: consolidate sched domains Message-ID: <20040829175058.GP5492@holomorphy.com> Mail-Followup-To: William Lee Irwin III , James Bottomley , Jesse Barnes , Andrew Morton , Linus Torvalds , Matthew Dobson , Nick Piggin , Linux Kernel References: <1093786747.1708.8.camel@mulgrave> <200408290948.06473.jbarnes@engr.sgi.com> <20040829170328.GK5492@holomorphy.com> <1093799390.10990.19.camel@mulgrave> <20040829172250.GM5492@holomorphy.com> <20040829172923.GN5492@holomorphy.com> <20040829174039.GO5492@holomorphy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040829174039.GO5492@holomorphy.com> Organization: The Domain of Holomorphy User-Agent: Mutt/1.5.6+20040722i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 29, 2004 at 10:40:39AM -0700, William Lee Irwin III wrote: > Okay, if you prefer the #ifdef: And for the other half of it: Index: wait-2.6.9-rc1-mm1/kernel/sched.c =================================================================== --- wait-2.6.9-rc1-mm1.orig/kernel/sched.c 2004-08-28 11:41:47.000000000 -0700 +++ wait-2.6.9-rc1-mm1/kernel/sched.c 2004-08-29 10:46:52.543081208 -0700 @@ -4224,7 +4224,11 @@ sd = &per_cpu(phys_domains, i); group = cpu_to_phys_group(i); *sd = SD_CPU_INIT; +#ifdef CONFIG_NUMA sd->span = nodemask; +#else + sd->span = cpu_possible_map; +#endif sd->parent = p; sd->groups = &sched_group_phys[group]; @@ -4262,6 +4266,7 @@ &cpu_to_isolated_group); } +#ifdef CONFIG_NUMA /* Set up physical groups */ for (i = 0; i < MAX_NUMNODES; i++) { cpumask_t nodemask = node_to_cpumask(i); @@ -4273,6 +4278,10 @@ init_sched_build_groups(sched_group_phys, nodemask, &cpu_to_phys_group); } +#else + init_sched_build_groups(sched_group_phys, cpu_possible_map, + &cpu_to_phys_group); +#endif #ifdef CONFIG_NUMA /* Set up node groups */