From b33355cdf8325f202bd5eca850a951d233653232 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Wed, 10 Jun 2020 21:04:50 +0200 Subject: [PATCH] linux57-tkg: Fix compilation when MuQSS is selected. Likely a small oversight from Con. --- linux57-tkg/PKGBUILD | 2 +- linux57-tkg/linux57-tkg-patches/0004-5.7-ck1.patch | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/linux57-tkg/PKGBUILD b/linux57-tkg/PKGBUILD index 1453742..f693ec6 100644 --- a/linux57-tkg/PKGBUILD +++ b/linux57-tkg/PKGBUILD @@ -135,7 +135,7 @@ sha256sums=('de8163bb62f822d84f7a3983574ec460060bf013a78ff79cd7c979ff1ec1d7e0' '7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7' 'c605f638d74c61861ebdc36ebd4cb8b6475eae2f6273e1ccb2bbb3e10a2ec3fe' 'bc69d6e5ee8172b0242c8fa72d13cfe2b8d2b6601468836908a7dfe8b78a3bbb' - '0a72687a647937500f31b25fd23c8a6f34642d3c2a0a26c9153a965faea3ea5c' + '4288e5c110d6edd7b7bc59794959b96cbee5e4003f38bff7b1486e2262198010' '62496f9ca788996181ef145f96ad26291282fcc3fb95cdc04080dcf84365be33' '7fd8e776209dac98627453fda754bdf9aff4a09f27cb0b3766d7983612eb3c74' 'bd0460d436e3ade46ea20b0087f8ccf62dce00f96de76f04b74620f81e63a2dc' diff --git a/linux57-tkg/linux57-tkg-patches/0004-5.7-ck1.patch b/linux57-tkg/linux57-tkg-patches/0004-5.7-ck1.patch index e558f67..dacc72c 100644 --- a/linux57-tkg/linux57-tkg-patches/0004-5.7-ck1.patch +++ b/linux57-tkg/linux57-tkg-patches/0004-5.7-ck1.patch @@ -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.