From patchwork Mon Feb 17 01:55:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 24731 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E893203BE for ; Mon, 17 Feb 2014 01:58:22 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id j5sf27897126qaq.6 for ; Sun, 16 Feb 2014 17:58:21 -0800 (PST) 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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=ySCl65uW6Skl5tShGESUkj0UUTUB88o35ERPmO5lfvQ=; b=AQZ+giqAOplARrBxISj1LpAuZawwSnJs6u621UqC0g5Yhg2FJDwq/VV6/lNs6vnFhm JawzWejzcEDWR7Dc2zq3EnldZzkZercUGVMxQXkjM/yK/3J8zf2jt99B+13N0TRZ3+0s Y1LIZ/CFC3/aw3jpAqhSfgIzWYKMmOT9IsRPQMBSZSxkbIXANwSmHNKtb1XlS5Y0TTsi gm3G+2o0X35WfxNVx3hMDy0fkvM2Q6FezmwG/Aj3TmQDLDOKOFRRWVUTgNMliohPDdEx M3KPhSl/1TqvbE1h6zJnJtJg9wEj5GaTBDseerd80uWk+Bbgl8bu2mSpPzQnQC6PtSrG V+LA== X-Gm-Message-State: ALoCoQmVd73O6H997bptymMw88Fdamm4BhhOOV3yOWtqD3dXg1AVyo8QvHJByn2daFJV1MVCH/ZJ X-Received: by 10.236.180.2 with SMTP id i2mr7542429yhm.4.1392602301558; Sun, 16 Feb 2014 17:58:21 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.175 with SMTP id 44ls762719qgp.24.gmail; Sun, 16 Feb 2014 17:58:21 -0800 (PST) X-Received: by 10.220.200.6 with SMTP id eu6mr2316004vcb.35.1392602301422; Sun, 16 Feb 2014 17:58:21 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id p9si4160388vdv.70.2014.02.16.17.58.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Feb 2014 17:58:21 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 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.177; Received: by mail-ve0-f177.google.com with SMTP id jz11so11320349veb.22 for ; Sun, 16 Feb 2014 17:58:21 -0800 (PST) X-Received: by 10.52.99.227 with SMTP id et3mr163266vdb.53.1392602301343; Sun, 16 Feb 2014 17:58:21 -0800 (PST) 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.174.196 with SMTP id u4csp102460vcz; Sun, 16 Feb 2014 17:58:20 -0800 (PST) X-Received: by 10.68.224.195 with SMTP id re3mr23490752pbc.93.1392602300573; Sun, 16 Feb 2014 17:58:20 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yn1si237411pab.168.2014.02.16.17.58.19; Sun, 16 Feb 2014 17:58:20 -0800 (PST) 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 S1754123AbaBQB6L (ORCPT + 27 others); Sun, 16 Feb 2014 20:58:11 -0500 Received: from mail-pa0-f52.google.com ([209.85.220.52]:52872 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752721AbaBQB6H (ORCPT ); Sun, 16 Feb 2014 20:58:07 -0500 Received: by mail-pa0-f52.google.com with SMTP id bj1so14583334pad.25 for ; Sun, 16 Feb 2014 17:58:07 -0800 (PST) X-Received: by 10.66.138.40 with SMTP id qn8mr399574pab.154.1392602287280; Sun, 16 Feb 2014 17:58:07 -0800 (PST) Received: from localhost.localdomain ([116.232.92.15]) by mx.google.com with ESMTPSA id eo11sm104524083pac.0.2014.02.16.17.57.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Feb 2014 17:58:06 -0800 (PST) From: Alex Shi To: mingo@redhat.com, peterz@infradead.org, morten.rasmussen@arm.com Cc: vincent.guittot@linaro.org, daniel.lezcano@linaro.org, fweisbec@gmail.com, linux@arm.linux.org.uk, tony.luck@intel.com, fenghua.yu@intel.com, james.hogan@imgtec.com, alex.shi@linaro.org, jason.low2@hp.com, viresh.kumar@linaro.org, hanjun.guo@linaro.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, akpm@linux-foundation.org, arjan@linux.intel.com, pjt@google.com, fengguang.wu@intel.com, linaro-kernel@lists.linaro.org, wangyun@linux.vnet.ibm.com Subject: [PATCH v2 11/11] sched: clean up task_hot function Date: Mon, 17 Feb 2014 09:55:17 +0800 Message-Id: <1392602117-20773-12-git-send-email-alex.shi@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1392602117-20773-1-git-send-email-alex.shi@linaro.org> References: <1392602117-20773-1-git-send-email-alex.shi@linaro.org> 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: alex.shi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 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: , task_hot doesn't need the 'sched_domain' parameter, so remove it. Signed-off-by: Alex Shi --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 1b008ac..e81a790 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5003,7 +5003,7 @@ static void move_task(struct task_struct *p, struct lb_env *env) * Is this task likely cache-hot: */ static int -task_hot(struct task_struct *p, u64 now, struct sched_domain *sd) +task_hot(struct task_struct *p, u64 now) { s64 delta; @@ -5164,7 +5164,7 @@ int can_migrate_task(struct task_struct *p, struct lb_env *env) * 2) task is cache cold, or * 3) too many balance attempts have failed. */ - tsk_cache_hot = task_hot(p, rq_clock_task(env->src_rq), env->sd); + tsk_cache_hot = task_hot(p, rq_clock_task(env->src_rq)); if (!tsk_cache_hot) tsk_cache_hot = migrate_degrades_locality(p, env);