From patchwork Mon Apr 14 16:23:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28355 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7A2E720534 for ; Mon, 14 Apr 2014 16:35:00 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf45717913oag.0 for ; Mon, 14 Apr 2014 09:35:00 -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=0scC890wtexz6IkQ2JgSEfOvFjlXaKLZJr2ggGWUw6c=; b=SIMQ2u6XGYZKm2njsxmQv9ZfGPT7238KKmR9zmjYwXpjNMfJzWTuHiM4+ihBGoSO/c z80CsUdXZ0aTpgV13a9AqLiUNVqDjOSn5XJdsF33KkotL7Cj/VlUVzICCz9n7d7tEoNT 3R/tOra6KnQfcYna/XQLFdVZ24z/+ZJJMg+owL+lrUkLYGYWB9BBRCkicNGjoWsmp/8m E78JMFsPq0fq1inxA6ZjYvdajkuyWa8wY2zSpdqjUiNYcWXR+1C4hLJ4GQCFUQwf01lL lLe3CKKfs1ywLsKLhZ4S4hZc/IJfQnLm5tZqaRjshBFT/bqOHrX9woVXm2rupCg/HEfy rZYA== X-Gm-Message-State: ALoCoQkfaGwzLQyTSjAnz2JttNXaxd+ukD3Ss46hH2ARWXnXkH4zMNKAN2OpCiFFUV71sR2zaFjV X-Received: by 10.50.136.198 with SMTP id qc6mr8067642igb.4.1397493300024; Mon, 14 Apr 2014 09:35:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.229 with SMTP id t92ls2595231qgd.9.gmail; Mon, 14 Apr 2014 09:34:59 -0700 (PDT) X-Received: by 10.221.55.133 with SMTP id vy5mr37360045vcb.17.1397493299833; Mon, 14 Apr 2014 09:34:59 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id ej2si2841197veb.41.2014.04.14.09.34.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:34:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id ib6so7977714vcb.13 for ; Mon, 14 Apr 2014 09:34:59 -0700 (PDT) X-Received: by 10.58.207.74 with SMTP id lu10mr37636243vec.15.1397493299733; Mon, 14 Apr 2014 09:34:59 -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 ib8csp163457vcb; Mon, 14 Apr 2014 09:34:59 -0700 (PDT) X-Received: by 10.66.181.70 with SMTP id du6mr45025683pac.23.1397493298973; Mon, 14 Apr 2014 09:34:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qf5si9160087pac.47.2014.04.14.09.34.58; Mon, 14 Apr 2014 09:34:58 -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 S1755934AbaDNQeu (ORCPT + 26 others); Mon, 14 Apr 2014 12:34:50 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:53117 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755829AbaDNQ1W (ORCPT ); Mon, 14 Apr 2014 12:27:22 -0400 Received: by mail-pa0-f45.google.com with SMTP id kl14so8421233pab.4 for ; Mon, 14 Apr 2014 09:27:21 -0700 (PDT) X-Received: by 10.68.197.8 with SMTP id iq8mr4622011pbc.124.1397492841622; Mon, 14 Apr 2014 09:27:21 -0700 (PDT) Received: from localhost ([122.167.126.16]) by mx.google.com with ESMTPSA id nc1sm34736947pbc.32.2014.04.14.09.27.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:27:20 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, Arvind.Chauhan@arm.com, linaro-networking@linaro.org, Viresh Kumar Subject: [PATCH 28/38] tick-sched: remove parameters to {__}tick_nohz_task_switch() routines Date: Mon, 14 Apr 2014 21:53:50 +0530 Message-Id: <5a6a145674295895cabbe355ac0d778c17cfc785.1397492345.git.viresh.kumar@linaro.org> 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.220.182 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. 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 801e844..1065a51 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 13299c5..84dc349 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -2156,7 +2156,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 ee0768b..5f7796d 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -266,7 +266,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;