From patchwork Mon Feb 17 01:55:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 24721 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 34AF1203BE for ; Mon, 17 Feb 2014 01:56:15 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id j5sf27875323qaq.2 for ; Sun, 16 Feb 2014 17:56:14 -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=kWDJOqHKzxjEcyN2xUsbBptOcBBOG2fSydhwzcw1WR8=; b=K6Y5xPemTyFXIjcseTh23wkqyM5IexYXPBYP+3aj00QYhBuhRz3U7hjOY+dFgIgm8b vT6yGUmBcXdVsBMxVs3je2SAzSDW6+LthtKUHoJB8wV+j4DvdWHvv3L8NlW1UbXA8GVQ ILiQ1+/Sg8fTgkfKYc4zNfhEkZBLlsQ3rL3wC5CoF2QpWn4EpqBDDCnW2RmBQckNSCcL aPAm3M2SDqcklNirT7QpNO2xOwzNpvFfXZceMU5sGDU13ikMDf71VuJQGo22D33Fnzuz YRbsLfbFCibncijT1ZHzBrWsajg/oDdsGYw+JsTNeNOReVoMXyCcChqrW+l//x29v4JU 1zPQ== X-Gm-Message-State: ALoCoQm0OzPB2ZMAsgUwN9zpiugTE+yPyFhEifxHddV3vQUIocRL2ZKPgJIhYfDsX2kUJ4i/BRaq X-Received: by 10.236.65.136 with SMTP id f8mr8293858yhd.11.1392602174230; Sun, 16 Feb 2014 17:56:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.47 with SMTP id s44ls752991qgs.70.gmail; Sun, 16 Feb 2014 17:56:14 -0800 (PST) X-Received: by 10.52.155.66 with SMTP id vu2mr176573vdb.50.1392602174122; Sun, 16 Feb 2014 17:56:14 -0800 (PST) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id gq1si4178085vec.23.2014.02.16.17.56.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Feb 2014 17:56:14 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.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.220.177; Received: by mail-vc0-f177.google.com with SMTP id if11so10919699vcb.22 for ; Sun, 16 Feb 2014 17:56:14 -0800 (PST) X-Received: by 10.52.160.233 with SMTP id xn9mr175176vdb.48.1392602174034; Sun, 16 Feb 2014 17:56:14 -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 u4csp102368vcz; Sun, 16 Feb 2014 17:56:13 -0800 (PST) X-Received: by 10.67.11.12 with SMTP id ee12mr5471737pad.132.1392602173162; Sun, 16 Feb 2014 17:56:13 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb2si10211504pbb.64.2014.02.16.17.56.12; Sun, 16 Feb 2014 17:56:12 -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 S1753932AbaBQB4G (ORCPT + 27 others); Sun, 16 Feb 2014 20:56:06 -0500 Received: from mail-pd0-f172.google.com ([209.85.192.172]:37322 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753127AbaBQB4C (ORCPT ); Sun, 16 Feb 2014 20:56:02 -0500 Received: by mail-pd0-f172.google.com with SMTP id p10so14202932pdj.17 for ; Sun, 16 Feb 2014 17:56:01 -0800 (PST) X-Received: by 10.68.184.66 with SMTP id es2mr23594243pbc.19.1392602161507; Sun, 16 Feb 2014 17:56:01 -0800 (PST) Received: from localhost.localdomain ([116.232.92.15]) by mx.google.com with ESMTPSA id eo11sm104524083pac.0.2014.02.16.17.55.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Feb 2014 17:56:00 -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 01/11] sched: shortcut to remove load_idx Date: Mon, 17 Feb 2014 09:55:07 +0800 Message-Id: <1392602117-20773-2-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.220.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: , Shortcut to remove rq->cpu_load[load_idx] effect in scheduler. In five load idx, only busy_idx, idle_idx are not zero. Newidle_idx, wake_idx and fork_idx are all zero in all archs. So, change the idx to zero here can fully remove load_idx effect. Signed-off-by: Alex Shi --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 235cfa7..4fcc3a3 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5908,7 +5908,7 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd if (child && child->flags & SD_PREFER_SIBLING) prefer_sibling = 1; - load_idx = get_sd_load_idx(env->sd, env->idle); + load_idx = 0; do { struct sg_lb_stats *sgs = &tmp_sgs;