Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 2010 12:45:46 +0100
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Demelier David <demelier.david@gmail.com>
Cc:        Giovanni Trematerra <giovanni.trematerra@gmail.com>, freebsd-stable@freebsd.org, freebsd-acpi@freebsd.org
Subject:   Re: Kernel panic when unpluggin AC adaptor
Message-ID:  <96F538BA-488A-46B3-99A0-BC324DB0F73A@FreeBSD.org>
In-Reply-To: <20100505110332.GA1578@Melon.malikania.fr>
References:  <n2gb3954bba1005040351o718a9508u8e992b0469137bdf@mail.gmail.com> <r2p4e6cba831005040836y43a0bb21x82b4b25334a755fa@mail.gmail.com> <y2yb3954bba1005040927l538ef077q20aea7a4c5121fdd@mail.gmail.com> <h2ub3954bba1005040935h7e5207b2o399c357a1cfd407@mail.gmail.com> <20100504200139.GP23646@deviant.kiev.zoral.com.ua> <i2qb3954bba1005041327v72795c19va26e23dbb79159b9@mail.gmail.com> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96F538BA-488A-46B3-99A0-BC324DB0F73A>