From eead51495c8760858c32d9ad0332ffc94397aa82 Mon Sep 17 00:00:00 2001 From: Quentin Perret Date: Tue, 25 Feb 2020 11:45:35 +0000 Subject: [PATCH] ANDROID: GKI: sched: stub sched_isolate symbols These are needed to let modules load during compliance testing, but the underlying core-isolation feature is not necessary for android-common. Bug: 149816871 Test: compiled, checked abi diff for missing sched_*isolate* symbols Signed-off-by: Quentin Perret Change-Id: Iaece1e98f821c50f2497b4a47b60714f49272750 --- kernel/sched/Makefile | 1 + kernel/sched/stubs.c | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 kernel/sched/stubs.c diff --git a/kernel/sched/Makefile b/kernel/sched/Makefile index daa5bca3923b..f6d19e37b656 100644 --- a/kernel/sched/Makefile +++ b/kernel/sched/Makefile @@ -19,6 +19,7 @@ endif obj-y += core.o loadavg.o clock.o cputime.o obj-y += idle.o fair.o rt.o deadline.o obj-y += wait.o wait_bit.o swait.o completion.o +obj-y += stubs.o obj-$(CONFIG_SMP) += cpupri.o cpudeadline.o topology.o stop_task.o pelt.o obj-$(CONFIG_SCHED_AUTOGROUP) += autogroup.o diff --git a/kernel/sched/stubs.c b/kernel/sched/stubs.c new file mode 100644 index 000000000000..718eb69c7467 --- /dev/null +++ b/kernel/sched/stubs.c @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Symbols stubs needed for GKI compliance + */ + +#include "sched.h" + +int sched_isolate_cpu(int cpu) +{ + return -EINVAL; +} +EXPORT_SYMBOL_GPL(sched_isolate_cpu); + +int sched_unisolate_cpu_unlocked(int cpu) +{ + return -EINVAL; +} +EXPORT_SYMBOL_GPL(sched_unisolate_cpu_unlocked); + +int sched_unisolate_cpu(int cpu) +{ + return -EINVAL; +} +EXPORT_SYMBOL_GPL(sched_unisolate_cpu); + +int set_task_boost(int boost, u64 period) +{ + return -EINVAL; +} +EXPORT_SYMBOL_GPL(set_task_boost);