aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorAlexey Starikovskiy <astarikovskiy@suse.de>2008-10-27 17:35:30 -0400
committerLen Brown <len.brown@intel.com>2008-11-11 18:33:57 -0500
commit1cfe62c8010ac56e1bd3827e30386a87cc2f3594 (patch)
tree88733731385e8d89217ba1a4fa51924c82e9e258 /drivers/acpi
parent3ad4f597058301c97f362e500a32f63f5c950a45 (diff)
ACPI: EC: revert msleep patch
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/ec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index ef42316f89f5..3ef5b796a685 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -239,10 +239,10 @@ static int ec_check_sci(struct acpi_ec *ec, u8 state)
239static int ec_poll(struct acpi_ec *ec) 239static int ec_poll(struct acpi_ec *ec)
240{ 240{
241 unsigned long delay = jiffies + msecs_to_jiffies(ACPI_EC_DELAY); 241 unsigned long delay = jiffies + msecs_to_jiffies(ACPI_EC_DELAY);
242 msleep(1); 242 udelay(ACPI_EC_UDELAY);
243 while (time_before(jiffies, delay)) { 243 while (time_before(jiffies, delay)) {
244 gpe_transaction(ec, acpi_ec_read_status(ec)); 244 gpe_transaction(ec, acpi_ec_read_status(ec));
245 msleep(1); 245 udelay(ACPI_EC_UDELAY);
246 if (ec_transaction_done(ec)) 246 if (ec_transaction_done(ec))
247 return 0; 247 return 0;
248 } 248 }