[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <169686648472.3135.10235202976466091036.tip-bot2@tip-bot2>
Date: Mon, 09 Oct 2023 15:48:04 -0000
From: "tip-bot2 for Ingo Molnar" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Ingo Molnar <mingo@...nel.org>,
Shrikanth Hegde <sshegde@...ux.vnet.ibm.com>,
Valentin Schneider <vschneid@...hat.com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: sched/core] sched/topology: Move the declaration of
'schedutil_gov' to kernel/sched/sched.h
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 <mingo@...nel.org>
AuthorDate: Mon, 09 Oct 2023 17:31:26 +02:00
Committer: Ingo Molnar <mingo@...nel.org>
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 <mingo@...nel.org>
Cc: Shrikanth Hegde <sshegde@...ux.vnet.ibm.com>
Cc: Valentin Schneider <vschneid@...hat.com>
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;
Powered by blists - more mailing lists