summaryrefslogtreecommitdiff
path: root/unscrew-ck1-muqss-Add-missing-static-function-uclamp_is_used.patch
blob: 002b1f42a30f44aa8ba9ddbb83c7489825f3315a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From e7113f2c1d56962d4afabc627ad761c138f5b858 Mon Sep 17 00:00:00 2001
From: Steven Barrett <steven@liquorix.net>
Date: Sat, 22 Aug 2020 15:35:09 -0500
Subject: [PATCH] muqss: Add missing static function, uclamp_is_used
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fix build error after stable patches below was merged:
 - sched/uclamp: Protect uclamp fast path code with static key

Build error:

kernel/sched/cpufreq_schedutil.c: In function ‘schedutil_cpu_util’:
kernel/sched/cpufreq_schedutil.c:219:7: error: implicit declaration of function ‘uclamp_is_used’ [-Werror=implicit-function-declaration]
  219 |  if (!uclamp_is_used() &&
      |       ^~~~~~~~~~~~~~
---
 kernel/sched/MuQSS.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/kernel/sched/MuQSS.h b/kernel/sched/MuQSS.h
index b34f2797e44f0..527819692c320 100644
--- a/kernel/sched/MuQSS.h
+++ b/kernel/sched/MuQSS.h
@@ -810,6 +810,11 @@ unsigned int uclamp_rq_util_with(struct rq __maybe_unused *rq, unsigned int util
 	return util;
 }
 
+static inline bool uclamp_is_used(void)
+{
+	return false;
+}
+
 #ifndef arch_scale_freq_tick
 static __always_inline
 void arch_scale_freq_tick(void)