From 7a8142aaf68c012858b8ce76bb0916478baeed89 Mon Sep 17 00:00:00 2001 From: Lee Jones Date: Tue, 13 Aug 2024 08:36:43 +0100 Subject: [PATCH] Reapply "Revert sched: Remove sched_setscheduler*() EXPORTs" This commit was lost during a recent merge due to the applicable functions changing location. Bringing these exports sees the out-of-tree Pixel 6 code compiling again. This reverts commit 616d91b68cd56bcb1954b6a5af7d542401fde772. Some vendor modules need to set explicit priorities for kernel threads (display, audio, graphics) Bug: 163613349 Signed-off-by: Todd Kjos Signed-off-by: Lee Jones Change-Id: Ie1b119d6dd7296269d9a72cc6c891c3a8d6b91a5 --- kernel/sched/syscalls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/syscalls.c b/kernel/sched/syscalls.c index ae1b42775ef9..244790341969 100644 --- a/kernel/sched/syscalls.c +++ b/kernel/sched/syscalls.c @@ -872,6 +872,7 @@ int sched_setscheduler(struct task_struct *p, int policy, { return _sched_setscheduler(p, policy, param, true); } +EXPORT_SYMBOL_GPL(sched_setscheduler); int sched_setattr(struct task_struct *p, const struct sched_attr *attr) { @@ -902,6 +903,7 @@ int sched_setscheduler_nocheck(struct task_struct *p, int policy, { return _sched_setscheduler(p, policy, param, false); } +EXPORT_SYMBOL_GPL(sched_setscheduler_nocheck); /* * SCHED_FIFO is a broken scheduler model; that is, it is fundamentally