Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 19 Aug 2002 16:32:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 19 Aug 2002 16:31:00 -0400 Received: from [195.39.17.254] ([195.39.17.254]:24704 "EHLO Elf.ucw.cz") by vger.kernel.org with ESMTP id ; Mon, 19 Aug 2002 16:30:57 -0400 Date: Mon, 20 Aug 2001 20:45:33 +0000 From: Pavel Machek To: Willy TARREAU Cc: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org Subject: Re: [PATCH] APM fix for 2.4.20pre1 Message-ID: <20010820204533.A169@toy.ucw.cz> References: <20020806134328.GA587@pcw.home.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20020806134328.GA587@pcw.home.local>; from willy@w.ods.org on Tue, Aug 06, 2002 at 03:43:28PM +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 26 Hi! > @@ -897,10 +889,11 @@ > */ > #ifdef CONFIG_SMP > /* Some bioses don't like being called from CPU != 0 */ > - while (cpu_number_map(smp_processor_id()) != 0) { > - kernel_thread(apm_magic, NULL, > - CLONE_FS | CLONE_FILES | CLONE_SIGHAND | SIGCHLD); > + if (cpu_number_map(smp_processor_id()) != 0) { > + current->cpus_allowed = 1; > schedule(); > + if (unlikely(cpu_number_map(smp_processor_id()) != 0)) > + BUG(); BUG_ON()? Pavel -- Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt, details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html. - 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/