From 07dedf70ee8d690ce7ca9ccf14c1b479be167752 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Sun, 25 Feb 2018 22:49:20 +0100 Subject: 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 --- misc-modules/jiq.c | 4 ++-- 1 file 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; -- cgit v1.2.1-18-gbd029