Commit c17acfdf authored by Todd Poynor's avatar Todd Poynor Committed by Greg Kroah-Hartman

staging: gasket: gasket_wait_with_reschedule use msleep

Replace schedule_timeout() call with msleep() for simplicity.
Reported-by: default avatarDmitry Torokhov <dtor@chromium.org>
Signed-off-by: default avatarZhongze Hu <frankhu@chromium.org>
Signed-off-by: default avatarTodd Poynor <toddpoynor@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 24dfee40
......@@ -14,6 +14,7 @@
#include "gasket_page_table.h"
#include "gasket_sysfs.h"
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/of.h>
......@@ -2097,7 +2098,7 @@ int gasket_wait_with_reschedule(
tmp = gasket_dev_read_64(gasket_dev, bar, offset);
if ((tmp & mask) == val)
break;
schedule_timeout(msecs_to_jiffies(delay_ms));
msleep(delay_ms);
retries++;
}
if (retries == max_retries) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment