From 6b490e44447a8ee5dd2bbcbe70e77b8acaa1fb03 Mon Sep 17 00:00:00 2001 From: takawata Date: Thu, 25 Oct 2007 17:03:07 +0000 Subject: Fix variable name to be clear what it means. --- sys/dev/acpica/acpi_ec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/acpica') 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; -- cgit v1.1