linux/debian/patches-rt/0030-sched-migrate_disable-...

39 lines
1.4 KiB
Diff
Raw Normal View History

2019-04-08 23:49:20 +00:00
From 44ee5f4d373ec3180cec3b68f606a77be0ac2dfb Mon Sep 17 00:00:00 2001
2018-10-30 12:40:05 +00:00
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Tue, 9 Oct 2018 17:34:50 +0200
2019-04-08 23:49:20 +00:00
Subject: [PATCH 030/266] sched/migrate_disable: Add export_symbol_gpl for
2018-10-30 12:40:05 +00:00
__migrate_disabled
2019-04-08 23:49:20 +00:00
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.31-rt18.tar.xz
2018-10-30 12:40:05 +00:00
Jonathan reported that lttng/modules can't use __migrate_disabled().
This function is only used by sched/core itself and the tracing
infrastructure to report the migrate counter (lttng does probably the
same). Since the rework migrate_disable() it moved from sched.h to
preempt.h and is became an exported function instead of a "static
inline" due to the header recursion of preempt vs sched.
Since the compiler inlines the function for sched/core usage, add a
EXPORT_SYMBOL_GPL to allow the module/LTTNG usage.
Reported-by: Jonathan Rajott <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
2019-04-08 23:49:20 +00:00
kernel/sched/core.c | 1 +
2018-10-30 12:40:05 +00:00
1 file changed, 1 insertion(+)
2019-04-08 23:49:20 +00:00
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 77f3c4771a2b..f027ac73f1df 100644
2018-10-30 12:40:05 +00:00
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
2019-04-08 23:49:20 +00:00
@@ -1012,6 +1012,7 @@ int __migrate_disabled(struct task_struct *p)
2018-10-30 12:40:05 +00:00
{
return p->migrate_disable;
}
+EXPORT_SYMBOL_GPL(__migrate_disabled);
#endif
static void __do_set_cpus_allowed_tail(struct task_struct *p,
2019-04-08 23:49:20 +00:00
--
2.20.1