Thread (62 messages) flat view 62 messages, 7 authors, 2015-06-17
STALE4085d

[RFC PATCH 17/18] ring_buffer: Use the new API for a sleep with a timeout in the benchmark

From: Petr Mladek <hidden>
Date: 2015-06-05 15:03:41
Also in: linux-nfs, lkml
Subsystem: the rest, tracing · Maintainers: Linus Torvalds, Steven Rostedt, Masami Hiramatsu

It will allow to maintain the checks for freezing, parking, and signal
handling on a single place.

Signed-off-by: Petr Mladek <redacted>
---
 kernel/trace/ring_buffer_benchmark.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/trace/ring_buffer_benchmark.c b/kernel/trace/ring_buffer_benchmark.c
index 4ecf7c4567e2..ae6295d6e63f 100644
--- a/kernel/trace/ring_buffer_benchmark.c
+++ b/kernel/trace/ring_buffer_benchmark.c
@@ -398,8 +398,7 @@ static void ring_buffer_producer_thread_func(void *arg)
 		goto test_killed;
 
 	trace_printk("Sleeping for 10 secs\n");
-	set_current_state(TASK_INTERRUPTIBLE);
-	schedule_timeout(HZ * SLEEP_TIME);
+	set_kthread_iterant_int_sleep_timeout(HZ * SLEEP_TIME);
 	return;
 
 test_killed:
-- 
1.8.5.6

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help