ACPI: EC: revert msleep patch
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Mon, 27 Oct 2008 21:35:30 +0000 (00:35 +0300)
committerLen Brown <len.brown@intel.com>
Tue, 11 Nov 2008 23:33:57 +0000 (18:33 -0500)
With the better solution for EC interrupt storm issue,
there is no need to use msleep over udelay.

References:
http://bugzilla.kernel.org/show_bug.cgi?id=11810
http://bugzilla.kernel.org/show_bug.cgi?id=10724

Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/ec.c

index ef42316f89f52452f69192d89894ca9ba64f46ee..3ef5b796a685e36ad60718c7226e967de56466b2 100644 (file)
@@ -239,10 +239,10 @@ static int ec_check_sci(struct acpi_ec *ec, u8 state)
 static int ec_poll(struct acpi_ec *ec)
 {
        unsigned long delay = jiffies + msecs_to_jiffies(ACPI_EC_DELAY);
-       msleep(1);
+       udelay(ACPI_EC_UDELAY);
        while (time_before(jiffies, delay)) {
                gpe_transaction(ec, acpi_ec_read_status(ec));
-               msleep(1);
+               udelay(ACPI_EC_UDELAY);
                if (ec_transaction_done(ec))
                        return 0;
        }