linux57-tkg: Fix compilation when MuQSS is selected. Likely a small oversight from Con.

This commit is contained in:
Tk-Glitch
2020-06-10 21:04:50 +02:00
parent a9d36ea252
commit b33355cdf8
2 changed files with 12 additions and 2 deletions

View File

@@ -3470,7 +3470,7 @@ new file mode 100644
index 000000000000..18a9b4a23e44
--- /dev/null
+++ b/kernel/sched/MuQSS.c
@@ -0,0 +1,7614 @@
@@ -0,0 +1,7624 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * kernel/sched/MuQSS.c, was kernel/sched.c
@@ -7012,6 +7012,16 @@ index 000000000000..18a9b4a23e44
+static inline void sched_tick_stop(int cpu) { }
+#endif
+
+DEFINE_PER_CPU(unsigned long, thermal_pressure);
+
+void arch_set_thermal_pressure(struct cpumask *cpus,
+ unsigned long th_pressure)
+{
+ int cpu;
+
+ for_each_cpu(cpu, cpus)
+ WRITE_ONCE(per_cpu(thermal_pressure, cpu), th_pressure);
+}
+/*
+ * This function gets called by the timer code, with HZ frequency.
+ * We call it with interrupts disabled.