From patchwork Wed Mar 12 06:51:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 26075 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 039E8203AB for ; Wed, 12 Mar 2014 06:52:18 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id gq1sf37350641obb.7 for ; Tue, 11 Mar 2014 23:52:18 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=L40uyy5BPck1S8DWOJgH5Hho6MgjjZC95we0y5U/Y18=; b=mA0kzpnbHNVLrv4QiLoI0Zoi2xegk16sYVd46DeLpDJpI91E9nxB1FNYJ2hGXeVz5/ 6sjhZJSeOoU118KMa2v4fz71dqbaGSyIXbcFB/luADyzFR9HXvtIX+HQHZzmVI7tXKnv tGRbJlI84ZJcqbS6++fdk2cKwL+mMS5fnEL5hb80a2xjEEMeUeabVt7q05zhb2UuBLa7 nx6RgUQSAUSr6Mbr6E1TA3ieuPXBtVapiexT+CW0ANT3GAFzd4lo5mdH7XJNjjKJDSs3 g6l2bfIi8FeyIM6yoCQB1Z7OwK2tNV8I3mfDEWsifixT2IwBmMCY+W7mwFuaJuREfnGP fu1g== X-Gm-Message-State: ALoCoQmqoRP4qh2dWpjRUdcOvMf7vo3yBFTlT644ZRX5sy7MRTGa5/a+DJmjz9kVSuNiKH00w5S2 X-Received: by 10.43.125.196 with SMTP id gt4mr7261382icc.32.1394607138289; Tue, 11 Mar 2014 23:52:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.148 with SMTP id h20ls2743459qgd.36.gmail; Tue, 11 Mar 2014 23:52:18 -0700 (PDT) X-Received: by 10.220.106.84 with SMTP id w20mr31110739vco.18.1394607138160; Tue, 11 Mar 2014 23:52:18 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id p9si7224243vdv.96.2014.03.11.23.52.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 23:52:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.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.220.174; Received: by mail-vc0-f174.google.com with SMTP id ld13so4449857vcb.33 for ; Tue, 11 Mar 2014 23:52:18 -0700 (PDT) X-Received: by 10.220.95.139 with SMTP id d11mr13015348vcn.21.1394607138049; Tue, 11 Mar 2014 23:52:18 -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.78.9 with SMTP id i9csp265394vck; Tue, 11 Mar 2014 23:52:17 -0700 (PDT) X-Received: by 10.66.121.195 with SMTP id lm3mr2914522pab.154.1394607136961; Tue, 11 Mar 2014 23:52:16 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vo7si1335979pab.161.2014.03.11.23.52.16; Tue, 11 Mar 2014 23:52:16 -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 S1756437AbaCLGwI (ORCPT + 26 others); Wed, 12 Mar 2014 02:52:08 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:60063 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755412AbaCLGwG (ORCPT ); Wed, 12 Mar 2014 02:52:06 -0400 Received: by mail-pa0-f52.google.com with SMTP id rd3so676662pab.11 for ; Tue, 11 Mar 2014 23:52:05 -0700 (PDT) X-Received: by 10.66.12.67 with SMTP id w3mr2925950pab.29.1394607125104; Tue, 11 Mar 2014 23:52:05 -0700 (PDT) Received: from localhost.localdomain ([162.243.130.63]) by mx.google.com with ESMTPSA id iq10sm3876250pbc.14.2014.03.11.23.52.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 23:52:04 -0700 (PDT) From: Alex Shi To: mingo@redhat.com, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, Alex Shi Subject: [PATCH] sched: clean up task_hot function Date: Wed, 12 Mar 2014 14:51:51 +0800 Message-Id: <1394607111-1904-1-git-send-email-alex.shi@linaro.org> X-Mailer: git-send-email 1.8.1.2 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.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: , 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 7947c86..00153ad 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4980,7 +4980,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; @@ -5141,7 +5141,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);