Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 2010 23:07:10 +0200
From:      Giovanni Trematerra <giovanni.trematerra@gmail.com>
To:        Demelier David <demelier.david@gmail.com>
Cc:        freebsd-stable@freebsd.org, freebsd-acpi@freebsd.org
Subject:   Re: Kernel panic when unpluggin AC adaptor
Message-ID:  <i2i4e6cba831005051407keabbe871tf70749b80276298f@mail.gmail.com>
In-Reply-To: <20100505135743.GA1613@Melon.malikania.fr>
References:  <y2yb3954bba1005040927l538ef077q20aea7a4c5121fdd@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> <96F538BA-488A-46B3-99A0-BC324DB0F73A@FreeBSD.org> <20100505135743.GA1613@Melon.malikania.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Would you be so kind to try to revert this patch?
I'm just guessing

You have to pass -R flag to patch program to apply the patch

=========================

--- head/sys/dev/acpica/acpi_acad.c	2009/06/05 18:44:36	193530
+++ head/sys/dev/acpica/acpi_acad.c	2009/09/30 17:07:49	197649
@@ -109,13 +109,14 @@
     ACPI_SERIAL_BEGIN(acad);
     if (newstatus != -1 && sc->status != newstatus) {
 	sc->status = newstatus;
+	ACPI_SERIAL_END(acad);
 	power_profile_set_state(newstatus ? POWER_PROFILE_PERFORMANCE :
 	    POWER_PROFILE_ECONOMY);
 	ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev),
 	    "%s Line\n", newstatus ? "On" : "Off");
 	acpi_UserNotify("ACAD", h, newstatus);
-    }
-    ACPI_SERIAL_END(acad);
+    } else
+	ACPI_SERIAL_END(acad);
 }

 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?i2i4e6cba831005051407keabbe871tf70749b80276298f>