Message ID | 1393293054-11378-2-git-send-email-alex.shi@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDVYVHM6UUPBBJ7OV6MAKGQEDFAY4BY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1FCB22066E for <linaro@patches.linaro.org>; Tue, 25 Feb 2014 01:51:35 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id y10sf3616176pdj.4 for <linaro@patches.linaro.org>; Mon, 24 Feb 2014 17:51:35 -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=WjpAQPA2FhicrA2comkTS7pjedfcb0UUHsQSZZ12X9E=; b=fb8x7/68eGnTGUtUKlLYy7GHZDpJLlzUJzxpT5J9m/8yTWJYQ2uszzO6kAoFxgZL82 tEBzzqZ3oC460+E4++a1IxnaFCO++dLYiqcDGyWYpLkweacteIdy03O9kcWJEVyQJMga 1igloXL6O6I/ObSYJgJkqSQIUzlu6r5C9GYXt8Vu50ZGhB98gQpYyoE2xM7HKU6g+RA/ lQlvKNVo8dfqS3D7bHdEHuUr2Rytoi3LhG1YdJVZ7NiiHmJxDUgzUH5mFBLKCKWgO2+S AoclBKYAd0jXhws5TQ2ioLzFok0r2CSIXbIJdUvKUTXg+aGwlPOMY3iDlcfSfzNmABxs APHQ== X-Gm-Message-State: ALoCoQnKfPvAjBg9Mb6MnIImqSj1J6HFQflHP6/eHqSc6FYCrvu4+cSBfNMhyhkwHNfC2YxH6o5F X-Received: by 10.66.218.70 with SMTP id pe6mr13095348pac.33.1393293095147; Mon, 24 Feb 2014 17:51:35 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.180 with SMTP id z49ls2245838qgd.59.gmail; Mon, 24 Feb 2014 17:51:35 -0800 (PST) X-Received: by 10.52.23.68 with SMTP id k4mr12669443vdf.24.1393293094978; Mon, 24 Feb 2014 17:51:34 -0800 (PST) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id dd4si6407335vcb.145.2014.02.24.17.51.34 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Feb 2014 17:51:34 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.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.128.174; Received: by mail-ve0-f174.google.com with SMTP id oy12so1988499veb.33 for <patchwork-forward@linaro.org>; Mon, 24 Feb 2014 17:51:34 -0800 (PST) X-Received: by 10.220.147.16 with SMTP id j16mr129500vcv.28.1393293094881; Mon, 24 Feb 2014 17:51:34 -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 u4csp103134vcz; Mon, 24 Feb 2014 17:51:33 -0800 (PST) X-Received: by 10.66.25.241 with SMTP id f17mr28639424pag.127.1393293092343; Mon, 24 Feb 2014 17:51:32 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ey10si18878459pab.285.2014.02.24.17.51.31; Mon, 24 Feb 2014 17:51:31 -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 S1753278AbaBYBv1 (ORCPT <rfc822;linus.walleij@linaro.org> + 26 others); Mon, 24 Feb 2014 20:51:27 -0500 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35096 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753094AbaBYBvY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Feb 2014 20:51:24 -0500 Received: by mail-pa0-f52.google.com with SMTP id fb1so169428pad.11 for <linux-kernel@vger.kernel.org>; Mon, 24 Feb 2014 17:51:23 -0800 (PST) X-Received: by 10.67.8.102 with SMTP id dj6mr28917372pad.10.1393293083586; Mon, 24 Feb 2014 17:51:23 -0800 (PST) Received: from localhost.localdomain ([116.232.61.20]) by mx.google.com with ESMTPSA id q7sm4499844pbc.20.2014.02.24.17.51.13 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Feb 2014 17:51:22 -0800 (PST) From: Alex Shi <alex.shi@linaro.org> 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 01/11] sched: shortcut to remove load_idx Date: Tue, 25 Feb 2014 09:50:44 +0800 Message-Id: <1393293054-11378-2-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: <patchwork-forward.linaro.org> 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.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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 5f6ddbe..0cfc3fd 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;
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 <alex.shi@linaro.org> --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)