From patchwork Mon Feb 24 05:12:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 25169 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 659E4203C3 for ; Mon, 24 Feb 2014 05:14:07 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf18036224oag.0 for ; Sun, 23 Feb 2014 21:14:06 -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=7M9ejGWUnGIpkkvUFUiPObcdU0Yq/ZEh8YzppRVv034=; b=V6nJe79Okm1BQABsUtNNSkZeBu1lICDsj4rXKYGRmtHAY7/7+t1qEXQKLkvEI60N38 9cYnpbGtsEwnwZ1u+NHL42qdGf2WuYxVeMs97A45B+iebjslcQDvIyJLtGC0t+Cyz+DS C85fpgQMBS97VzDtl1JTxEbsjSCU5+7wft/BHAnYwCPcMKCbBDY9qEgK779/B2yO11Ws jEzmaEYwhk3T7s69pUtUF3lYB2O1oDDcLx1A5OT/OZGSukOhWFqjLDryzsCM+CBYHQ2Z K2d708EjcyhH9wovHTU9n7wUCy0UsphkOBqJKp/BtjdFQotXjTklcd8WSOtbFbGcnLkC DarQ== X-Gm-Message-State: ALoCoQntyNceu07Pv2oKtQllQbM2nuze6WUf2FcRLaxEXJQtOa4cfgr8nV7AMDn8y1Ou/FPmUXM2 X-Received: by 10.50.124.33 with SMTP id mf1mr8529316igb.6.1393218846861; Sun, 23 Feb 2014 21:14:06 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.103 with SMTP id g94ls1800274qgd.82.gmail; Sun, 23 Feb 2014 21:14:06 -0800 (PST) X-Received: by 10.220.95.139 with SMTP id d11mr11337316vcn.21.1393218846688; Sun, 23 Feb 2014 21:14:06 -0800 (PST) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id yt16si5565160vcb.42.2014.02.23.21.14.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Feb 2014 21:14:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.169 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.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so5395310vcb.14 for ; Sun, 23 Feb 2014 21:14:06 -0800 (PST) X-Received: by 10.221.26.10 with SMTP id rk10mr11443808vcb.0.1393218846586; Sun, 23 Feb 2014 21:14:06 -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 u4csp36603vcz; Sun, 23 Feb 2014 21:14:06 -0800 (PST) X-Received: by 10.68.212.161 with SMTP id nl1mr22871255pbc.142.1393218845709; Sun, 23 Feb 2014 21:14:05 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si15394413pbl.101.2014.02.23.21.14.04; Sun, 23 Feb 2014 21:14:04 -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 S1752664AbaBXFN6 (ORCPT + 26 others); Mon, 24 Feb 2014 00:13:58 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:60675 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750757AbaBXFNz (ORCPT ); Mon, 24 Feb 2014 00:13:55 -0500 Received: by mail-pa0-f46.google.com with SMTP id rd3so6008453pab.5 for ; Sun, 23 Feb 2014 21:13:55 -0800 (PST) X-Received: by 10.66.146.199 with SMTP id te7mr22925096pab.106.1393218835477; Sun, 23 Feb 2014 21:13:55 -0800 (PST) Received: from localhost.localdomain ([162.243.130.63]) by mx.google.com with ESMTPSA id vn10sm45690743pbc.21.2014.02.23.21.13.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Feb 2014 21:13:54 -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 10/10] sched: clean up task_hot function Date: Mon, 24 Feb 2014 13:12:25 +0800 Message-Id: <1393218745-8795-11-git-send-email-alex.shi@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1393218745-8795-1-git-send-email-alex.shi@linaro.org> References: <1393218745-8795-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.220.169 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 6469c7a..b0c189d 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);