From owner-freebsd-acpi@FreeBSD.ORG Wed May 5 11:45:51 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C398D1065672; Wed, 5 May 2010 11:45:51 +0000 (UTC) (envelope-from rpaulo@freebsd.org) Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by mx1.freebsd.org (Postfix) with ESMTP id 7D7578FC12; Wed, 5 May 2010 11:45:51 +0000 (UTC) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id 64F9011B902; Wed, 5 May 2010 06:45:50 -0500 (CDT) Received: from 10.0.10.3 (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by lavabit.com with ESMTP id MIVDB8GQ67BD; Wed, 05 May 2010 06:45:50 -0500 Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <20100505110332.GA1578@Melon.malikania.fr> Date: Wed, 5 May 2010 12:45:46 +0100 Content-Transfer-Encoding: 7bit Message-Id: <96F538BA-488A-46B3-99A0-BC324DB0F73A@FreeBSD.org> References: <20100504200139.GP23646@deviant.kiev.zoral.com.ua> <20100504203809.GR23646@deviant.kiev.zoral.com.ua> <42ACDAF6-7EA9-4CE9-AA8D-FDA678A1EA74@FreeBSD.org> <20100505074045.GA28030@Abricot.malikania.fr> <4DEBDE2C-C0D2-469D-AC42-DD5027926424@FreeBSD.org> <20100505110332.GA1578@Melon.malikania.fr> To: Demelier David X-Mailer: Apple Mail (2.1078) Cc: Giovanni Trematerra , freebsd-stable@freebsd.org, freebsd-acpi@freebsd.org Subject: Re: Kernel panic when unpluggin AC adaptor X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2010 11:45:51 -0000 Please try this patch: Index: acpi_cpu.c =================================================================== --- acpi_cpu.c (revision 207322) +++ acpi_cpu.c (working copy) @@ -997,12 +997,12 @@ if (notify != ACPI_NOTIFY_CX_STATES) return; + ACPI_SERIAL_BEGIN(cpu); /* Update the list of Cx states. */ acpi_cpu_cx_cst(sc); acpi_cpu_cx_list(sc); /* Update the new lowest useable Cx state for all CPUs. */ - ACPI_SERIAL_BEGIN(cpu); cpu_cx_count = 0; for (i = 0; i < cpu_ndevices; i++) { isc = device_get_softc(cpu_devices[i]); Regards, -- Rui Paulo