From patchwork Mon Apr 21 09:55:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28678 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 995FC2032B for ; Mon, 21 Apr 2014 09:57:28 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id eb12sf26483731oac.11 for ; Mon, 21 Apr 2014 02:57:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=sxnYfbJ9FZiP8DBNvqmlza7a+unS5Hq3xDfnNWhh9C8=; b=MWVUJGZBEL6Q/TkGlPo8Bt9WexapjBLAbgHiNt3v3R9IDt4g4KkfWVtjyFyTWecQ4u 4sgahT9r9iOJYSWLsyXAlV1L9QoZL+HpYpr8io/xOqNHvcaysnf8biK1ZAaiLKTvoenr MPNoVZm7ntpn83vg3SDP8+F6EjSLBwBNFZEsMzi8fJj8wj9fzt/vr0YlHh1+1sQO4M0H cRNPq5ZibQAL7iYW9BV9e0lmWDkHNTKrg3qKq2r4oXhL3PfdCb9VcM2kVM2PppsLrwnw yF9Wj2s0XQZ9wB/1fGnkR1yR5skd3wWrnZ7x+9wGQYy/choZ5ThnWr7rUrsW64XNf1ZH zSuQ== X-Gm-Message-State: ALoCoQkf0OUGOKbvoZlhVifHkq0Dh3f/OB3qQ8s9Nn3p0z53Qk5I+rfB/MDHPk9Zk/nIFqj61x07 X-Received: by 10.43.139.66 with SMTP id iv2mr1491064icc.17.1398074248172; Mon, 21 Apr 2014 02:57:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.22.208 with SMTP id 74ls1880197qgn.18.gmail; Mon, 21 Apr 2014 02:57:28 -0700 (PDT) X-Received: by 10.58.187.9 with SMTP id fo9mr32887545vec.4.1398074248053; Mon, 21 Apr 2014 02:57:28 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id mp4si6179308vcb.112.2014.04.21.02.57.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 02:57:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id oz11so7442623veb.19 for ; Mon, 21 Apr 2014 02:57:28 -0700 (PDT) X-Received: by 10.221.58.144 with SMTP id wk16mr2009558vcb.23.1398074247964; Mon, 21 Apr 2014 02:57:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp280297vcb; Mon, 21 Apr 2014 02:57:27 -0700 (PDT) X-Received: by 10.68.170.131 with SMTP id am3mr36777570pbc.97.1398074247134; Mon, 21 Apr 2014 02:57:27 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si827030pbg.504.2014.04.21.02.57.26; Mon, 21 Apr 2014 02:57:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752080AbaDUJ5E (ORCPT + 26 others); Mon, 21 Apr 2014 05:57:04 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:44417 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751584AbaDUJ46 (ORCPT ); Mon, 21 Apr 2014 05:56:58 -0400 Received: by mail-we0-f172.google.com with SMTP id t61so3582616wes.31 for ; Mon, 21 Apr 2014 02:56:57 -0700 (PDT) X-Received: by 10.180.207.10 with SMTP id ls10mr13474377wic.22.1398074217462; Mon, 21 Apr 2014 02:56:57 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id uc3sm15238931wib.10.2014.04.21.02.56.54 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 21 Apr 2014 02:56:56 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linaro-networking@linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, Viresh Kumar Subject: [PATCH V2 16/19] tick-sched: remove parameters to {__}tick_nohz_task_switch() routines Date: Mon, 21 Apr 2014 15:25:12 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , tick_nohz_task_switch() and __tick_nohz_task_switch() routines get task_struct passed to them (always for the 'current' task), but they never use it. Remove it. Acked-by: Frederic Weisbecker Signed-off-by: Viresh Kumar --- include/linux/tick.h | 8 ++++---- kernel/sched/core.c | 2 +- kernel/time/tick-sched.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/tick.h b/include/linux/tick.h index b8ee6f4..f538a4d 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -201,7 +201,7 @@ extern void tick_nohz_init(void); extern void __tick_nohz_full_check(void); extern void tick_nohz_full_kick(void); extern void tick_nohz_full_kick_all(void); -extern void __tick_nohz_task_switch(struct task_struct *tsk); +extern void __tick_nohz_task_switch(void); #else static inline void tick_nohz_init(void) { } static inline bool tick_nohz_full_enabled(void) { return false; } @@ -209,7 +209,7 @@ static inline bool tick_nohz_full_cpu(int cpu) { return false; } static inline void __tick_nohz_full_check(void) { } static inline void tick_nohz_full_kick(void) { } static inline void tick_nohz_full_kick_all(void) { } -static inline void __tick_nohz_task_switch(struct task_struct *tsk) { } +static inline void __tick_nohz_task_switch(void) { } #endif static inline void tick_nohz_full_check(void) @@ -218,10 +218,10 @@ static inline void tick_nohz_full_check(void) __tick_nohz_full_check(); } -static inline void tick_nohz_task_switch(struct task_struct *tsk) +static inline void tick_nohz_task_switch(void) { if (tick_nohz_full_enabled()) - __tick_nohz_task_switch(tsk); + __tick_nohz_task_switch(); } diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 3a4bb63..7cfe9d5a 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -2157,7 +2157,7 @@ static void finish_task_switch(struct rq *rq, struct task_struct *prev) put_task_struct(prev); } - tick_nohz_task_switch(current); + tick_nohz_task_switch(); } #ifdef CONFIG_SMP diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 8e75c13..2360e7a 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -258,7 +258,7 @@ void tick_nohz_full_kick_all(void) * It might need the tick due to per task/process properties: * perf events, posix cpu timers, ... */ -void __tick_nohz_task_switch(struct task_struct *tsk) +void __tick_nohz_task_switch(void) { unsigned long flags;