Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp633570imm; Wed, 4 Jul 2018 03:21:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdhzj2Y50r2ek89dSNHTxAsaCtiptGW6UqPocTmZX7yn4R5IluxHZlsiEm5dHG8tVyfMpu3 X-Received: by 2002:a62:47c4:: with SMTP id p65-v6mr1586505pfi.170.1530699703628; Wed, 04 Jul 2018 03:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530699703; cv=none; d=google.com; s=arc-20160816; b=bRA6rMEzqZ5hGr653vxrZm+fZIMt2WIbAVqTTZNfcDLUGDkEbNbvuoVaaAYI8u04Va FFHZYb1hwfPajUNIbhKY7rhGr4iHXyi7FNIT4+4/SI9DR4a7IeJ1RN57r2aG+2UKIU7O 6u8IZ4ujxmIkHop2Jxo7dAT7NqmMt0ELHGoc58l39YB1ym1Pgow0BD3Um8Ek+cZPvOyr TinLaNRx0PxO6rcVuqteq8E2Ffp34bP/BGcTQmv/3KGrQUDWHkJz190R9r5+Gn9pJIOB 83QQ/mR2Hzac2rvE8FIaYn7X8HESR9cqlC5BX0LcBqD51A3KH1n10VjO1nd0ek3tMOEp q8og== 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=mrVx8OxHSMY4l8lj6uOp8YQaH34hPE9NX5yxLEni/hQ=; b=KEQIvVF6D6xZranAQYnerXzx1uB0wTCJSHvr0f7B7P7RbFQO/1qijakyzQMSs62PbT Ab4mA3EesLaWV1tJmPxUx5lvaMySlGv3iaxn4XQYebZeHD8mvAcIklJvuuX3xsyvqhrk was/FJyxSc4UqYMpOHBqIRHkZvQvTBa8MSTC/qA/RahhttLyFH9IFPmqEkjuFOhFwAcU G8/6n5mC6Kwp+zvM+q8zlbamRI8jcIDyc/evi9THghx0llU49C5WoAcmOAm1+gpvbo9f chiCiXyBIGpuCTfYjybGBhAvfvTCJQRhry5aMmcx75Rddp/+ZfZcYB9unFcAiK8fbM2q 07lw== 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 d1-v6si3354496pfk.166.2018.07.04.03.21.29; Wed, 04 Jul 2018 03:21:43 -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 S934535AbeGDKS0 (ORCPT + 99 others); Wed, 4 Jul 2018 06:18:26 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35054 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934329AbeGDKSX (ORCPT ); Wed, 4 Jul 2018 06:18:23 -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 2A6461713; Wed, 4 Jul 2018 03:18:23 -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 9C68C3F5AD; Wed, 4 Jul 2018 03:18:21 -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 07/12] sched: Change root_domain->overload type to int Date: Wed, 4 Jul 2018 11:17:45 +0100 Message-Id: <1530699470-29808-8-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 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. cc: Ingo Molnar cc: Peter Zijlstra Signed-off-by: Valentin Schneider Signed-off-by: Morten Rasmussen --- 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 6c39a07e8a68..648224b23287 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -696,7 +696,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 @@ -1673,7 +1673,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 } -- 2.7.4