Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2571254imm; Mon, 10 Sep 2018 03:18:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaH4yQo951ufMOjHaWdC+PimnhaTIDoqGSGRzjY9FCnKiYP7hn7CRd7W12upu2tBpgNvT3f X-Received: by 2002:a17:902:52c:: with SMTP id 41-v6mr21147935plf.201.1536574697851; Mon, 10 Sep 2018 03:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536574697; cv=none; d=google.com; s=arc-20160816; b=TcGKxL+PGOqe3h65Oup4Y5raelfPC55cr5H25p1/oWAfyusuOQhWqeYATOPL6fyiA2 C9odYGxQmKYBIzUMGCyCYN6sSovvWCMGDgNjEPcpc2cwyewKlDcV5mUhyS59UoRSLCKC fx2G6rITOH5qeGBj7q33DEtwR5LCXzXemBZGpcIncqzcCz82dIOYlk6JNfceJiniwWC2 QJVcnBFHNq/yy2sbZ7ifyk9njG0acAGpfwjTTimkX5OWBwTr6o/GU8Rhb2qY4mcSVE15 VrNWhVNn2i7/IKCTvar6c+ZG1vtcCzakk/uP+cgz16XU9gmiqjpF/0L8bUWT+7slrBt6 PRqw== 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=dV7uSr8+5wYIH2ZhYdOpTo0tW5z7l9RW6DUT4zcXeMw=; b=jrIQXVLQ2LCN4o7fXrGlKhdu06r+FHvDGs1tq+NxOfdi3aBJFFX2JxcuPS1V9nN0hS 7BQOKnU/Q0/tWbBxunsIZwJZHfYSyaBXSheiAZHNbqPZBy4E/5aDp+URMRX856vo9Qz/ 3YG28k0ydws5pYEoQQhM4JhCGbXf186DI68nHni3P4UC2FdqrPnwLXOTP7+ZhQtu9xUy G42m3aJgG+qnXFtR4uZNGVkzNs7uP1Q17HgNDAUZ62g489KxeVmIfb4CNTPYfHdWprZT /rd4+aODMEK/7HfwEJrGLBE8D9iHjDGAzMbLMwHLh4AOmq7kLOfeq5CL7z3kQjygOZDW FLHw== 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 o123-v6si17246994pfd.36.2018.09.10.03.18.02; Mon, 10 Sep 2018 03:18:17 -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 S1728314AbeIJPKM (ORCPT + 99 others); Mon, 10 Sep 2018 11:10:12 -0400 Received: from terminus.zytor.com ([198.137.202.136]:38337 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727970AbeIJPKM (ORCPT ); Mon, 10 Sep 2018 11:10:12 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w8AAGV4c1808239 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 10 Sep 2018 03:16:31 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w8AAGVIW1808236; Mon, 10 Sep 2018 03:16:31 -0700 Date: Mon, 10 Sep 2018 03:16:31 -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: morten.rasmussen@arm.com, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, torvalds@linux-foundation.org, peterz@infradead.org, valentin.schneider@arm.com, mingo@kernel.org Reply-To: linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, torvalds@linux-foundation.org, morten.rasmussen@arm.com, valentin.schneider@arm.com, mingo@kernel.org, peterz@infradead.org In-Reply-To: <1530699470-29808-8-git-send-email-morten.rasmussen@arm.com> References: <1530699470-29808-8-git-send-email-morten.rasmussen@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/core: Change root_domain->overload type to int Git-Commit-ID: 575638d1047eb057a5cdf95cc0b3c084e1279508 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: 575638d1047eb057a5cdf95cc0b3c084e1279508 Gitweb: https://git.kernel.org/tip/575638d1047eb057a5cdf95cc0b3c084e1279508 Author: Valentin Schneider AuthorDate: Wed, 4 Jul 2018 11:17:45 +0100 Committer: Ingo Molnar CommitDate: Mon, 10 Sep 2018 11:05:52 +0200 sched/core: Change root_domain->overload type to int sizeof(_Bool) is implementation defined, so let's just go with 'int' as is done for other structures e.g. sched_domain_shared->has_idle_cores. The local 'overload' variable used in update_sd_lb_stats can remain bool, as it won't impact any struct layout and can be assigned to the root_domain field. 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-8-git-send-email-morten.rasmussen@arm.com Signed-off-by: Ingo Molnar --- kernel/sched/sched.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index fe17e0be2d7b..4d181478c5b8 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -716,7 +716,7 @@ struct root_domain { cpumask_var_t online; /* Indicate more than one runnable task for any CPU */ - bool overload; + int overload; /* * The bit corresponding to a CPU gets set here if such CPU has more @@ -1698,7 +1698,7 @@ static inline void add_nr_running(struct rq *rq, unsigned count) if (prev_nr < 2 && rq->nr_running >= 2) { #ifdef CONFIG_SMP if (!rq->rd->overload) - rq->rd->overload = true; + rq->rd->overload = 1; #endif }