From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261924AbVGVEXf (ORCPT ); Fri, 22 Jul 2005 00:23:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261926AbVGVEXf (ORCPT ); Fri, 22 Jul 2005 00:23:35 -0400 Received: from [216.208.38.107] ([216.208.38.107]:42391 "EHLO OTTLS.pngxnet.com") by vger.kernel.org with ESMTP id S261924AbVGVEXe (ORCPT ); Fri, 22 Jul 2005 00:23:34 -0400 Subject: [PATCH] Address BUG: using smp_processor_id() in preemptible [00000001] code From: Nigel Cunningham Reply-To: ncunningham@cyclades.com To: Linux Kernel Mailing List , Pavel Machek , Linux-pm mailing list Content-Type: text/plain Organization: Cycades Message-Id: <1122004741.3033.49.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6-1mdk Date: Fri, 22 Jul 2005 13:59:01 +1000 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes a warning in the disable_nonboot_cpus call in kernel/power/smp.c. Please apply. Signed-off by: Nigel Cunningham smp.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -ruNp 830-smp_processor_id_warning.patch-old/kernel/power/smp.c 830-smp_processor_id_warning.patch-new/kernel/power/smp.c --- 830-smp_processor_id_warning.patch-old/kernel/power/smp.c 2005-07-18 06:37:08.000000000 +1000 +++ 830-smp_processor_id_warning.patch-new/kernel/power/smp.c 2005-07-22 11:09:16.000000000 +1000 @@ -38,7 +38,7 @@ void disable_nonboot_cpus(void) } printk("Error taking cpu %d down: %d\n", cpu, error); } - BUG_ON(smp_processor_id() != 0); + BUG_ON(raw_smp_processor_id() != 0); if (error) panic("cpus not sleeping"); } -- Evolution. Enumerate the requirements. Consider the interdependencies. Calculate the probabilities.