summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2018-02-25 22:49:20 +0100
committerJavier Martinez Canillas <javier@dowhile0.org>2018-02-25 22:58:30 +0100
commit07dedf70ee8d690ce7ca9ccf14c1b479be167752 (patch)
tree9198cb4f9df4383b6ffa35fa1c141f02bd330347
parent18d6c1b94a97f6944586e7f3eba19768440a8877 (diff)
downloadldd3-07dedf70ee8d690ce7ca9ccf14c1b479be167752.tar.gz
jiq: Use wait_event_interruptible() instead of interruptible_sleep_on()
Use the wait_event_interruptible() function instead of the deprecated interruptible_sleep_on(). Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
-rw-r--r--misc-modules/jiq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-modules/jiq.c b/misc-modules/jiq.c
index 7b1c273..1ef101f 100644
--- a/misc-modules/jiq.c
+++ b/misc-modules/jiq.c
@@ -205,7 +205,7 @@ static int jiq_read_tasklet_show(struct seq_file *m, void *v)
jiq_data.jiffies = jiffies; /* initial time */
tasklet_schedule(&jiq_tasklet);
- interruptible_sleep_on(&jiq_wait); /* sleep till completion */
+ wait_event_interruptible(jiq_wait, 0); /* sleep till completion */
return 0;
}
@@ -247,7 +247,7 @@ static int jiq_read_run_timer_show(struct seq_file *m, void *v)
jiq_print(&jiq_data); /* print and go to sleep */
add_timer(&jiq_timer);
- interruptible_sleep_on(&jiq_wait); /* RACE */
+ wait_event_interruptible(jiq_wait, 0); /* RACE */
del_timer_sync(&jiq_timer); /* in case a signal woke us up */
return 0;