From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266630AbUGVP1V (ORCPT ); Thu, 22 Jul 2004 11:27:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266643AbUGVP1V (ORCPT ); Thu, 22 Jul 2004 11:27:21 -0400 Received: from dragnfire.mtl.istop.com ([66.11.160.179]:8176 "EHLO dsl.commfireservices.com") by vger.kernel.org with ESMTP id S266630AbUGVP1U (ORCPT ); Thu, 22 Jul 2004 11:27:20 -0400 Date: Thu, 22 Jul 2004 11:30:37 -0400 (EDT) From: Zwane Mwaikambo To: Linux Kernel Cc: Len Brown , shaohua.li@intel.com, yi.zhu@intel.com, Andrew Morton , Marcelo Tosatti Subject: [PATCH][2.4/2.6] Quiesce after changing ACPI idle thread In-Reply-To: Message-ID: References: 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 (Please apply this patch instead of the previously posted one). This patch addresses the following bugzilla bug; http://bugzilla.kernel.org/show_bug.cgi?id=1716 When unloading the processor module we modify the currently used idle thread (pm_idle), this causes an oops due to the idle thread text being unloaded. This should apply to both 2.6 and 2.4. Signed-off-by: Zwane Mwaikambo Index: linux-2.6.8-rc1-mm1/drivers/acpi/processor.c =================================================================== RCS file: /home/cvsroot/linux-2.6.8-rc1-mm1/drivers/acpi/processor.c,v retrieving revision 1.1.1.1 diff -u -p -B -r1.1.1.1 processor.c --- linux-2.6.8-rc1-mm1/drivers/acpi/processor.c 14 Jul 2004 04:56:25 -0000 1.1.1.1 +++ linux-2.6.8-rc1-mm1/drivers/acpi/processor.c 20 Jul 2004 15:31:46 -0000 @@ -2372,8 +2372,10 @@ acpi_processor_remove ( pr = (struct acpi_processor *) acpi_driver_data(device); /* Unregister the idle handler when processor #0 is removed. */ - if (pr->id == 0) + if (pr->id == 0) { pm_idle = pm_idle_save; + synchronize_kernel(); + } status = acpi_remove_notify_handler(pr->handle, ACPI_DEVICE_NOTIFY, acpi_processor_notify);