Return-Path: Received: from cantor2.suse.de ([195.135.220.15]:58404 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422736AbbFEPCL (ORCPT ); Fri, 5 Jun 2015 11:02:11 -0400 From: Petr Mladek To: Andrew Morton , Oleg Nesterov , Tejun Heo , Ingo Molnar , Peter Zijlstra Cc: Richard Weinberger , Steven Rostedt , David Woodhouse , linux-mtd@lists.infradead.org, Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, Chris Mason , "Paul E. McKenney" , Thomas Gleixner , Linus Torvalds , Jiri Kosina , Borislav Petkov , Michal Hocko , live-patching@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Mladek Subject: [RFC PATCH 17/18] ring_buffer: Use the new API for a sleep with a timeout in the benchmark Date: Fri, 5 Jun 2015 17:01:16 +0200 Message-Id: <1433516477-5153-18-git-send-email-pmladek@suse.cz> In-Reply-To: <1433516477-5153-1-git-send-email-pmladek@suse.cz> References: <1433516477-5153-1-git-send-email-pmladek@suse.cz> Sender: linux-nfs-owner@vger.kernel.org List-ID: It will allow to maintain the checks for freezing, parking, and signal handling on a single place. Signed-off-by: Petr Mladek --- 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