Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 23 Jan 2002 07:35:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 23 Jan 2002 07:35:03 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:11674 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Wed, 23 Jan 2002 07:34:51 -0500 Date: Wed, 23 Jan 2002 07:34:48 -0500 (EST) From: Alexander Viro To: Ingo Molnar cc: Zwane Mwaikambo , Linux Kernel Subject: Re: 2.5.2-pre2-3 SMP broken on UP boxen In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Jan 2002, Ingo Molnar wrote: > > On Wed, 23 Jan 2002, Zwane Mwaikambo wrote: > > > My test box is a single proc machine running an SMP kernel. As > > of 2.5.2-pre2 it panics on boot. [...] > > the same on 2.5.3-pre3 as well? > > > [...] The reason is kinda obvious, smp_processor_id() will always > > return the same as global_irq_holder. How come we do this check now? > > it should only be set when the current CPU has disabled global IRQs. in arch/i386/kernel/smpboot.c: @@ -1017,7 +1017,7 @@ boot_cpu_logical_apicid = logical_smp_processor_id(); map_cpu_to_boot_apicid(0, boot_cpu_apicid); - global_irq_holder = 0; + global_irq_holder = NO_PROC_ID; current->cpu = 0; smp_tune_scheduling(); - 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/