From patchwork Mon Feb 24 05:12:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 25160 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0EB50203C3 for ; Mon, 24 Feb 2014 05:13:18 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id v10sf16038304pde.5 for ; Sun, 23 Feb 2014 21:13:18 -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=DKKZ3HWBr+5hx+AaqBijinQudckABoHWn5K/ErDYITBPYVzTSo+xcTKlxGAQhWVcj1 Cja1/ZwLqlnPElzWgR3Ex3ZyhrqeC/OsgacnAlTCq7Wq3NPeljcAh3yjVHoQarLLbJU6 l56tU7v89gC4xY+WWxA+8VUh0d2T8RYRAFG1XKrsLUbF4TdVGqgVhcrZTTsBKboKXd4R fOIxuaRXSyAyHcoxK69vlelfHWxAdApfORZCGm79mmjPNNHQuf3zrzB2M86brpPs1kKZ hB88jMdbnfxbmyjqrKmQ7tPsNOh/3q9uaUnWL45zJQ8/PqEFaCpSGBQOXg17IIyRIgrG cLuQ== X-Gm-Message-State: ALoCoQnfneOwkA4kfuuSxCzr3EBJgdJILhDd5NOulYyi+0luYEZgNkgQ4FA6nftjWf/Akv+rv9rl X-Received: by 10.66.146.65 with SMTP id ta1mr10554464pab.19.1393218798181; Sun, 23 Feb 2014 21:13:18 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.134 with SMTP id b6ls1842054qgb.91.gmail; Sun, 23 Feb 2014 21:13:18 -0800 (PST) X-Received: by 10.52.26.106 with SMTP id k10mr3572347vdg.85.1393218798028; Sun, 23 Feb 2014 21:13:18 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id gq1si5550581vec.137.2014.02.23.21.13.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Feb 2014 21:13:18 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id ld13so5288901vcb.32 for ; Sun, 23 Feb 2014 21:13:17 -0800 (PST) X-Received: by 10.52.23.68 with SMTP id k4mr9593571vdf.24.1393218797907; Sun, 23 Feb 2014 21:13:17 -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 u4csp36560vcz; Sun, 23 Feb 2014 21:13:17 -0800 (PST) X-Received: by 10.67.2.106 with SMTP id bn10mr22802639pad.38.1393218796920; Sun, 23 Feb 2014 21:13:16 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tt8si15434509pbc.160.2014.02.23.21.13.16; Sun, 23 Feb 2014 21:13:16 -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 S1751874AbaBXFMt (ORCPT + 26 others); Mon, 24 Feb 2014 00:12:49 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:42119 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751604AbaBXFMq (ORCPT ); Mon, 24 Feb 2014 00:12:46 -0500 Received: by mail-pd0-f171.google.com with SMTP id r10so285035pdi.16 for ; Sun, 23 Feb 2014 21:12:45 -0800 (PST) X-Received: by 10.66.9.41 with SMTP id w9mr8758109paa.39.1393218765857; Sun, 23 Feb 2014 21:12:45 -0800 (PST) Received: from localhost.localdomain ([162.243.130.63]) by mx.google.com with ESMTPSA id vn10sm45690743pbc.21.2014.02.23.21.12.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Feb 2014 21:12:45 -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 01/10] sched: shortcut to remove load_idx Date: Mon, 24 Feb 2014 13:12:16 +0800 Message-Id: <1393218745-8795-2-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.173 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;