Date: Tue, 28 Apr 2009 11:56:54 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/acpica acpi.c Message-ID: <200904281157.n3SBv2jw009216@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
avg 2009-04-28 11:56:54 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi.c Log: SVN rev 191627 on 2009-04-28 11:56:54Z by avg acpi: do not run resume/backout code when entering S0/S5 states This change adds (possibly redundant) early check for invalid state input parameter (including S0). Handling of S5 request is reduced to simply calling shutdown_nice(). As a result control flow of acpi_EnterSleepState is somewhat simplified and resume/backout half of the function is not executed for S5 (soft poweroff) request and invalid state requests. Note: it seems that shutdown_nice may act as nop when initproc is already initialized (to grab pid of 1), but init process is in "pre-natal" state. Tested by: Fabian Keil <fk@fabiankeil.de> Reviewed by: njl, jkim Approved by: rpaulo Revision Changes Path 1.258 +67 -74 src/sys/dev/acpica/acpi.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904281157.n3SBv2jw009216>