Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1980365rdb; Mon, 9 Oct 2023 08:48:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhCifaPr95GJ9paBZr9prUuSMZPrp/ILufzK9vvQzySAse2L1+Dsmr8q2US+W+6Ku8+LTd X-Received: by 2002:a17:90a:cc01:b0:279:47d:318a with SMTP id b1-20020a17090acc0100b00279047d318amr13562216pju.29.1696866508137; Mon, 09 Oct 2023 08:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696866508; cv=none; d=google.com; s=arc-20160816; b=LDburCG/uVfNmb399sgKvRK75TFEzD+HTC0wJjLJcUGy7dnfM2PHixv5UttcmcRs/f HlLN2h3bxEhUlLspGqI5WuKDMWghV+nrzeA7hCYQK9iV9MMrdl8k93CUXPm9ryL233cu c92X3fSuNEOjYX3rVlPVZgRqQT/g0gsE8+XY93EN8d/x3WsTzJP8PnSuG7YESUkx914c rNfczHBLJv9tqhwxCb9pljhBKC5XYpY4v//66LidJzNZQYj0v1DzosVy71RaCZyDGUmS TnyCBxEWIKtoq0cqd9b7MF0qWgMZxFR94CwF321jKoyL84RfsdpyThDr45+8MY+VnQyz kxzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=j8RY9/oqlZ5AQToIicqBzl+juLEi2EMX3EhjVM/TL2c=; fh=wejOcP7cmHR59QGAwdOGBKkqnr7zBpwh/MvjTdQz2bM=; b=E4YtYomIPrQpW1PvYQGDhHw/Fu1mYJ1ZpwiAZ+EhTy3UuQP8nWy0c5Si31NxAXgohd MON/c/CTNHGxz3QHKahkefwn0egrXJ5NdICFJc/3feQ4zpE6fdDwJ3fKLWAYGO+D2n7S HHyejk7wZYzu7shn/RpxAzTVrbHeFZe02tnwuhrUhyas+RJHJBbaYSqqOJhmFx5A7Uif Pwa7nhIK6BoDuOnCqovM70r1uTdL/oxKHV49z9bY7prOOGKsFQPyreGu3d+w4zU159Zr rUhq80QjvJENYAkwxXe0+wKMIxfwV+iWNh4W+ZXNRYkNgPm6V4k1+ypsXVqeuAHLXB5y ARwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4RddHo4x; dkim=neutral (no key) header.i=@linutronix.de header.b=wCSzn3A6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bo23-20020a17090b091700b00277382d4803si11683295pjb.173.2023.10.09.08.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:48:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4RddHo4x; dkim=neutral (no key) header.i=@linutronix.de header.b=wCSzn3A6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C84D6810FBD6; Mon, 9 Oct 2023 08:48:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376907AbjJIPsJ (ORCPT + 99 others); Mon, 9 Oct 2023 11:48:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376463AbjJIPsI (ORCPT ); Mon, 9 Oct 2023 11:48:08 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3B519F; Mon, 9 Oct 2023 08:48:07 -0700 (PDT) Date: Mon, 09 Oct 2023 15:48:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696866485; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j8RY9/oqlZ5AQToIicqBzl+juLEi2EMX3EhjVM/TL2c=; b=4RddHo4x0ftAHJuclLAbluzoUNGJ+/LOEB3EfLg5hFv3z5WHmo+KdMmQSsXTWWoXXsT9Yv WeO1deGCYU9e2+ryJIkICbCwRWAWlFnpszN6IiFQ1B+Sark6dhhPC9IFgLN3hAKMKl++XG 73EZtipg5QKOXlFSDWBekmwfkA4aMrvnDImkpDJdOS9r/TCBrxt+Hz0q3/lA6bAsZdqjRH C9TVRvm/fVU8uRdhYzBgGjo5Zs9tMdjAsX98uTOwb2XiVpQyhnfh7PjmveKiC1cAhcqE1+ eu/+5dMbOXQLOjsE/2UvJB9Bm0XsJBVK29unHf9DuZf2nFg+kJRJj5e/20pTMA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696866485; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j8RY9/oqlZ5AQToIicqBzl+juLEi2EMX3EhjVM/TL2c=; b=wCSzn3A6JTASoogVgThL/BIY/JFD05Oq2mM9eji4Thmnj8q3aIXUdzyv1NAGY7D76k/p5m 8OIhmDub2mDasdCw== From: "tip-bot2 for Ingo Molnar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/topology: Move the declaration of 'schedutil_gov' to kernel/sched/sched.h Cc: Ingo Molnar , Shrikanth Hegde , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231009060037.170765-3-sshegde@linux.vnet.ibm.com> References: <20231009060037.170765-3-sshegde@linux.vnet.ibm.com> MIME-Version: 1.0 Message-ID: <169686648472.3135.10235202976466091036.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 08:48:20 -0700 (PDT) X-Spam-Level: ** The following commit has been merged into the sched/core branch of tip: Commit-ID: f2273f4e19e29f7d0be6a2393f18369cd1b496c8 Gitweb: https://git.kernel.org/tip/f2273f4e19e29f7d0be6a2393f18369cd1b496c8 Author: Ingo Molnar AuthorDate: Mon, 09 Oct 2023 17:31:26 +02:00 Committer: Ingo Molnar CommitterDate: Mon, 09 Oct 2023 17:33:10 +02:00 sched/topology: Move the declaration of 'schedutil_gov' to kernel/sched/sched.h Move it out of the .c file into the shared scheduler-internal header file, to gain type-checking. Signed-off-by: Ingo Molnar Cc: Shrikanth Hegde Cc: Valentin Schneider Link: https://lore.kernel.org/r/20231009060037.170765-3-sshegde@linux.vnet.ibm.com --- kernel/sched/sched.h | 2 ++ kernel/sched/topology.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 7e7fedc..faf9031 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -3203,6 +3203,8 @@ static inline bool sched_energy_enabled(void) return static_branch_unlikely(&sched_energy_present); } +extern struct cpufreq_governor schedutil_gov; + #else /* ! (CONFIG_ENERGY_MODEL && CONFIG_CPU_FREQ_GOV_SCHEDUTIL) */ #define perf_domain_span(pd) NULL diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 4cbbdac..d950861 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -212,7 +212,6 @@ static unsigned int sysctl_sched_energy_aware = 1; static DEFINE_MUTEX(sched_energy_mutex); static bool sched_energy_update; -extern struct cpufreq_governor schedutil_gov; static bool sched_is_eas_possible(const struct cpumask *cpu_mask) { bool any_asym_capacity = false;