Revert "sched: Remove sched_setscheduler*() EXPORTs"
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 14 May 2021 01:56:44 +0000 (10:56 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 3 Aug 2023 08:46:14 +0000 (17:46 +0900)
This reverts commit 616d91b68cd56bcb1954b6a5af7d542401fde772.

Some out-of-tree module still uses sched_setscheduler(), so for
build, revert removing export symbol for it.

Change-Id: Ic2dbfc04e03e91c5d8daf52039f06149ae0d5fb1
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
kernel/sched/core.c

index c1458fa..4443794 100644 (file)
@@ -7599,11 +7599,13 @@ 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)
 {
        return __sched_setscheduler(p, attr, true, true);
 }
+EXPORT_SYMBOL_GPL(sched_setattr);
 
 int sched_setattr_nocheck(struct task_struct *p, const struct sched_attr *attr)
 {
@@ -7629,6 +7631,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