summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortakawata <takawata@FreeBSD.org>2007-10-25 17:03:07 +0000
committertakawata <takawata@FreeBSD.org>2007-10-25 17:03:07 +0000
commit6b490e44447a8ee5dd2bbcbe70e77b8acaa1fb03 (patch)
tree157eb29240f0c918c1912fdb33b2c251a1528c00
parent39da3f5321a664d70a61231e8037d918eb8d5b10 (diff)
downloadFreeBSD-src-6b490e44447a8ee5dd2bbcbe70e77b8acaa1fb03.zip
FreeBSD-src-6b490e44447a8ee5dd2bbcbe70e77b8acaa1fb03.tar.gz
Fix variable name to be clear what it means.
-rw-r--r--sys/dev/acpica/acpi_ec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index 7e532b5..5f0a021 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -817,7 +817,7 @@ EcWaitEvent(struct acpi_ec_softc *sc, EC_EVENT Event, u_int gen_count)
ACPI_SERIAL_ASSERT(ec);
Status = AE_NO_HARDWARE_RESPONSE;
- int need_suspend = cold || rebooting || ec_polled_mode || sc->ec_suspending;
+ int need_poll = cold || rebooting || ec_polled_mode || sc->ec_suspending;
/*
* The main CPU should be much faster than the EC. So the status should
* be "not ready" when we start waiting. But if the main CPU is really
@@ -830,7 +830,7 @@ EcWaitEvent(struct acpi_ec_softc *sc, EC_EVENT Event, u_int gen_count)
* the status checking loop, hopefully to allow the EC to go to work
* and produce a non-stale status.
*/
- if (need_suspend) {
+ if (need_poll) {
static int once;
if (EcCheckStatus(sc, "pre-check", Event) == AE_OK) {
@@ -844,7 +844,7 @@ EcWaitEvent(struct acpi_ec_softc *sc, EC_EVENT Event, u_int gen_count)
}
/* Wait for event by polling or GPE (interrupt). */
- if (need_suspend) {
+ if (need_poll) {
count = (ec_timeout * 1000) / EC_POLL_DELAY;
if (count == 0)
count = 1;
OpenPOWER on IntegriCloud