From patchwork Tue Feb 25 01:50:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 25232 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f198.google.com (mail-ig0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 29C4A2066E for ; Tue, 25 Feb 2014 01:53:39 +0000 (UTC) Received: by mail-ig0-f198.google.com with SMTP id h3sf349725igd.1 for ; Mon, 24 Feb 2014 17:53:38 -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=KaxsKtovaUe58d0Y9pFkmkE/Oa37wD0YceJb+h8ipFM=; b=HGcQCPKmpREcim/Ih/gYonyLJnX+25tu+/GOG9Ud0+bJOEENemRagyUIyO7abjmJkt 2ij2ByiTGus1ta9KOYuGMH6xhlF8n8cfnztrWBAfNnL9tkJiVxtEPtMeZNiOj9pJifkp t/pkkg3B5arrVXJRUMM6suEH2WBPLdt1mCpfbioihGT5SGI0plFpC/YQBEYwoYSvfsEM Hh0d1+ThZTWJQHDZ6Etw6pTEqVO009CB87AAwc5Po/rizNc+ihjFf8hPIR6ntYgz1kb8 Pdcb40aHweFJk9BgCW+zZKkvouKIHnOh8iGGtYAZsNByky8vDRFwO1rTaZLmRPNApNVQ lDuA== X-Gm-Message-State: ALoCoQkCVxqRhswJ7pIsO/EUlQc678CNovOGFweluOe06pvSbC7zrcuqCLuycJHbwVGGbTYr3WCy X-Received: by 10.50.47.6 with SMTP id z6mr273629igm.4.1393293218618; Mon, 24 Feb 2014 17:53:38 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.70 with SMTP id t64ls2199811qge.1.gmail; Mon, 24 Feb 2014 17:53:38 -0800 (PST) X-Received: by 10.220.191.134 with SMTP id dm6mr15197131vcb.16.1393293218466; Mon, 24 Feb 2014 17:53:38 -0800 (PST) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id od9si6408811vcb.140.2014.02.24.17.53.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Feb 2014 17:53:38 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.179 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.179; Received: by mail-ve0-f179.google.com with SMTP id oz11so1268137veb.24 for ; Mon, 24 Feb 2014 17:53:38 -0800 (PST) X-Received: by 10.58.204.4 with SMTP id ku4mr135980vec.34.1393293218379; Mon, 24 Feb 2014 17:53:38 -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 u4csp103245vcz; Mon, 24 Feb 2014 17:53:36 -0800 (PST) X-Received: by 10.69.1.38 with SMTP id bd6mr3293740pbd.17.1393293216500; Mon, 24 Feb 2014 17:53:36 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wq4si1783729pbc.317.2014.02.24.17.53.35; Mon, 24 Feb 2014 17:53:35 -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 S1753569AbaBYBxW (ORCPT + 26 others); Mon, 24 Feb 2014 20:53:22 -0500 Received: from mail-pb0-f52.google.com ([209.85.160.52]:33619 "EHLO mail-pb0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752827AbaBYBxU (ORCPT ); Mon, 24 Feb 2014 20:53:20 -0500 Received: by mail-pb0-f52.google.com with SMTP id rr13so874725pbb.11 for ; Mon, 24 Feb 2014 17:53:20 -0800 (PST) X-Received: by 10.68.170.66 with SMTP id ak2mr3217164pbc.5.1393293199981; Mon, 24 Feb 2014 17:53:19 -0800 (PST) Received: from localhost.localdomain ([116.232.61.20]) by mx.google.com with ESMTPSA id q7sm4499844pbc.20.2014.02.24.17.53.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Feb 2014 17:53:19 -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, mgorman@suse.de Subject: [PATCH 11/11] sched: clean up task_hot function Date: Tue, 25 Feb 2014 09:50:54 +0800 Message-Id: <1393293054-11378-12-git-send-email-alex.shi@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1393293054-11378-1-git-send-email-alex.shi@linaro.org> References: <1393293054-11378-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.179 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 9a0b2aa..22e6d8f 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);