Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2570731imm; Mon, 10 Sep 2018 03:17:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdamAv+tUVGzzYO7aqRHRZ/q/hCvLjmuradBjnG5Vcfc8Dfaz5PNIvBZ2/SRCe9toFHzS0Hc X-Received: by 2002:a17:902:3a2:: with SMTP id d31-v6mr20993377pld.287.1536574667460; Mon, 10 Sep 2018 03:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536574667; cv=none; d=google.com; s=arc-20160816; b=ntGHDk0cYdYt/UsaLhT9wW766K/dycX7cP7CD2FAI3HHHCZrcM8fSfP4Cpy1qbmQDN llXViIPWYYPHaZpGGybeHrHrLBDOVi/iqvT3ckRfrUUUdl+DcsB73xxhX/q2MrIqMM6X MYITXNceH6B2znNaVfQM9AwuwYmjgDs8lBKromJIlTHbAnbGnpi/30d81ttUwLbpLQUT PQL8iRWtFGwJNVlnUuICE1SmvHfaUYDS9FWgFV98mGtrhD7zL9FKmaYHQSOgF/RTbFRR Twn2PRt4tj8NVvjKlAIT4Xnv0PizidD1bvR4KVhfYot2cAZdEud4HyNNxOV3G9CiqWG4 97Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=3/X4qqVRNEWgJwfjMhyfGNZWRsaWoEV4VPddcHNq77E=; b=o6IvWn0dd7zoK/ILbGM/Ny/vfE4Kw9+ZjCjny2MqmRknNePSKSahaQ2rKXJa5m1cRw 1CSzSf2b2d24c0DSOtFuuE/g+6qDieUwdqA3CYu2dhjznvLpXUO/4qNzNmYm3226Uwq/ n/lz8HQzovNAaH13Fr+A2PYzANolDyC4VcynHrwYLAGHdaXFkUIXKQwhwCkJiAXRI538 WjMYrmoisZTcpuqwfXgfg0ubfmEEGZ1PtlQRYShTc8+ia+8MWwwtV9TRexfh0fxpH8HS Re1/UWOs5xB6LNlv2TFFl0zEOK8/sMZk4LQdPw/4C0KkSNVaXilyea02umitkZr3Vmi8 TdjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j15-v6si15500149pfn.366.2018.09.10.03.17.32; Mon, 10 Sep 2018 03:17:47 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728277AbeIJPJk (ORCPT + 99 others); Mon, 10 Sep 2018 11:09:40 -0400 Received: from terminus.zytor.com ([198.137.202.136]:60835 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbeIJPJk (ORCPT ); Mon, 10 Sep 2018 11:09:40 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w8AAFxIf1808185 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 10 Sep 2018 03:15:59 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w8AAFx7o1808182; Mon, 10 Sep 2018 03:15:59 -0700 Date: Mon, 10 Sep 2018 03:15:59 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Valentin Schneider Message-ID: Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, peterz@infradead.org, valentin.schneider@arm.com, tglx@linutronix.de, torvalds@linux-foundation.org, morten.rasmussen@arm.com Reply-To: hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, morten.rasmussen@arm.com, torvalds@linux-foundation.org, tglx@linutronix.de, valentin.schneider@arm.com, peterz@infradead.org In-Reply-To: <1530699470-29808-7-git-send-email-morten.rasmussen@arm.com> References: <1530699470-29808-7-git-send-email-morten.rasmussen@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/fair: Change 'prefer_sibling' type to bool Git-Commit-ID: dbbad719449e06d73db21598d6eee178f7a54b3b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: dbbad719449e06d73db21598d6eee178f7a54b3b Gitweb: https://git.kernel.org/tip/dbbad719449e06d73db21598d6eee178f7a54b3b Author: Valentin Schneider AuthorDate: Wed, 4 Jul 2018 11:17:44 +0100 Committer: Ingo Molnar CommitDate: Mon, 10 Sep 2018 11:05:51 +0200 sched/fair: Change 'prefer_sibling' type to bool This variable is entirely local to update_sd_lb_stats, so we can safely change its type and slightly clean up its initialisation. Signed-off-by: Valentin Schneider Signed-off-by: Morten Rasmussen Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: dietmar.eggemann@arm.com Cc: gaku.inami.xh@renesas.com Cc: vincent.guittot@linaro.org Link: http://lkml.kernel.org/r/1530699470-29808-7-git-send-email-morten.rasmussen@arm.com Signed-off-by: Ingo Molnar --- kernel/sched/fair.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e08287d3806f..23017939ecab 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -7982,11 +7982,9 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd struct sched_group *sg = env->sd->groups; struct sg_lb_stats *local = &sds->local_stat; struct sg_lb_stats tmp_sgs; - int load_idx, prefer_sibling = 0; + int load_idx; bool overload = false; - - if (child && child->flags & SD_PREFER_SIBLING) - prefer_sibling = 1; + bool prefer_sibling = child && child->flags & SD_PREFER_SIBLING; #ifdef CONFIG_NO_HZ_COMMON if (env->idle == CPU_NEWLY_IDLE && READ_ONCE(nohz.has_blocked))