Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp430432pxa; Wed, 12 Aug 2020 05:54:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1sn6zCqQTNW4KdRQG9t9rWlxxtMFq+qlXNtEUSJBRp6n/BztkDB1hGBSxjDwArR0jMwmc X-Received: by 2002:a05:6402:c0a:: with SMTP id co10mr31860030edb.342.1597236894484; Wed, 12 Aug 2020 05:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597236894; cv=none; d=google.com; s=arc-20160816; b=iFQXyf4SJUYrktFYG8E4edM5Wdo8HN/NpQyh2QzxZsebsm1UJVknYrM4mcu5kpeSMd RMRzIZP2CWt983VE9GZlwWkjDR4ASbXc5QXiac4PR1ZPVztvcFeDyNoXbtiC7IDyG5i/ a/Lu9GqRSIwLwJ050HI24D80j6kjDgR5elK/4Riv62AXSpnuOhhmX0rD0rkaiFhF15um PjCMO/ri8wwJmsb7GHIoO7kyiU7Ig4NsfHjXZlYmyk0F4vNlCGMiKVR9NrsI16ERMZ/D 2Cfy8EwFxv55nfZnZeDoZIQwgVxQi7XiRzKQFFYcFpiotmusAnRCLJjDC9MBwRNk1+h/ KviQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QPmc3lVgjQ2UNWV0D7X5Y8c0KFGvzEUKaQl5pGAmYfE=; b=qSOCY4Sv8RcFMa2bHMHZg6avOirLWl+n8RqcywTCZLM8RvinCSIvf5HJa3x7vd2Zun wfEPvEbRBa6Dqu5IlGIgedzqeiPw/24bhoZjArSxMysSu4HySTns+3yQlgUEjsVkDEJq B74yubK/Yn8oMmptJnc8tGMrEy6dGiNyYudEEjggNJnR2NUVPEw4UGrKDk8bHGjvMmg5 2aLoiMhp1D1YmbABJDac9SAcZY/qWhxKPWcyPa5N556qfcQix4T4nQvNURVimdYdU31l 5UfuBC6MwVmyuRAGRhNastrlSGa+464z+EVR13tzuROmWuoyfSIbzJk+1PBo0HtrH3rF xxUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si1156760edr.368.2020.08.12.05.54.31; Wed, 12 Aug 2020 05:54:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728108AbgHLMxh (ORCPT + 99 others); Wed, 12 Aug 2020 08:53:37 -0400 Received: from foss.arm.com ([217.140.110.172]:44666 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728074AbgHLMxa (ORCPT ); Wed, 12 Aug 2020 08:53:30 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4F8C611B3; Wed, 12 Aug 2020 05:53:30 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 10C8D3F70D; Wed, 12 Aug 2020 05:53:28 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, morten.rasmussen@arm.com, Quentin Perret Subject: [PATCH v5 12/17] sched/topology: Mark SD_BALANCE_WAKE as SDF_NEEDS_GROUPS Date: Wed, 12 Aug 2020 13:52:55 +0100 Message-Id: <20200812125300.11889-13-valentin.schneider@arm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200812125300.11889-1-valentin.schneider@arm.com> References: <20200812125300.11889-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Even if no mainline topology uses this flag, it is a load balancing flag just like SD_BALANCE_FORK and requires 2+ groups to have any effect. Signed-off-by: Valentin Schneider --- include/linux/sched/sd_flags.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/sched/sd_flags.h b/include/linux/sched/sd_flags.h index 75c9749a6e2d..9043d18ce418 100644 --- a/include/linux/sched/sd_flags.h +++ b/include/linux/sched/sd_flags.h @@ -70,8 +70,9 @@ SD_FLAG(SD_BALANCE_FORK, SDF_SHARED_CHILD | SDF_NEEDS_GROUPS) * Balance on wakeup * * SHARED_CHILD: Set from the base domain up to cpuset.sched_relax_domain_level. + * NEEDS_GROUPS: Load balancing flag. */ -SD_FLAG(SD_BALANCE_WAKE, SDF_SHARED_CHILD) +SD_FLAG(SD_BALANCE_WAKE, SDF_SHARED_CHILD | SDF_NEEDS_GROUPS) /* * Consider waking task on waking CPU. -- 2.27.0