Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp634315imm; Wed, 4 Jul 2018 03:22:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfCYnd8zmszyBx6ih2nHJXEkK/x4uQkQjln9QHdMLE7hZ9McEYnwbURqnqtn0S3kIy2067Y X-Received: by 2002:a17:902:bf43:: with SMTP id u3-v6mr1515819pls.322.1530699760295; Wed, 04 Jul 2018 03:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530699760; cv=none; d=google.com; s=arc-20160816; b=SB+wtl4Oz8vXBXLoU7Q0dWDaWOAxvxV+pyy5NJJYnadPmAfsRZNUbbNkkvEvfp5feN zkfw59C1893aYmJR5pQxjLwA0Xp2GDTMHGDa+9eMqbMcWhxnJwMY0hwz1lku2Gqm+uW4 ZoSg/4rkrC8fDgh7eb2TG8w+OYzarIGsLOcQ/J+EejaiJXlxIscl++pfUjcSerFJG9Mj mGe9AjHpfkaDTC6LBD50VTO2nJsptynWll8sWiWNdIzjB+fJSwkCsKP6viv8lsxb8B++ lRBSwUYbFJxsItWqBVqCqswBZDR9cy4jgtyGil9eWr8+h225Pudbc6dxCMoB/jzvbqEq njxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=A6fCWPjA2d8GemsLwTfxksk4zSy42zAmqyY2jUZDn5k=; b=MePj0emb2Jf0yX4SNXmfD8eDp3cQG9hd5tVWJcchiQ68la7o8V9eqDo7/6ndC/1daX eroI7cls6ZQFjrpRDUxrCTmN3LrNELQAF3VKmsUs/JeZtwKddMF43E+1qsJDgNsDmwiS YbwyWB4PxnK+mG2c5SeET5lSGNtykNUy/7fTmfZkoVLjOasHRvB8oHiZR98oTEVs5LwH G0L2UZzdBAjY20t//c7jv1OJRdM12f3zafixqw2qeR+0n9kPL/N77SrPd0ENjloWMrcf 4cx4MW2nYpMmRYZrLM+3JVkVDvPVoFAnHD3rYTNqcaApDohXkg+HinpMoSPfWrWznK/e Grrw== 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 p2-v6si3396844pli.289.2018.07.04.03.22.25; Wed, 04 Jul 2018 03:22:40 -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 S934727AbeGDKUX (ORCPT + 99 others); Wed, 4 Jul 2018 06:20:23 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35042 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934471AbeGDKSV (ORCPT ); Wed, 4 Jul 2018 06:18:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5E7B016A3; Wed, 4 Jul 2018 03:18:21 -0700 (PDT) Received: from e105550-lin.cambridge.arm.com (e105550-lin.cambridge.arm.com [10.1.211.30]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D12773F5AD; Wed, 4 Jul 2018 03:18:19 -0700 (PDT) From: Morten Rasmussen To: peterz@infradead.org, mingo@redhat.com Cc: valentin.schneider@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, gaku.inami.xh@renesas.com, linux-kernel@vger.kernel.org, Morten Rasmussen Subject: [PATCHv4 06/12] sched/fair: Change prefer_sibling type to bool Date: Wed, 4 Jul 2018 11:17:44 +0100 Message-Id: <1530699470-29808-7-git-send-email-morten.rasmussen@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530699470-29808-1-git-send-email-morten.rasmussen@arm.com> References: <1530699470-29808-1-git-send-email-morten.rasmussen@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Valentin Schneider This variable is entirely local to update_sd_lb_stats, so we can safely change its type and slightly clean up its initialisation. cc: Ingo Molnar cc: Peter Zijlstra Signed-off-by: Valentin Schneider Signed-off-by: Morten Rasmussen --- 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 acec93e1dc51..ee26eeb188ef 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8352,11 +8352,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)) -- 2.7.4