diff options
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r-- | drivers/acpi/ec.c | 4 |
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) | |||
239 | static int ec_poll(struct acpi_ec *ec) | 239 | static 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 | } |