42 lines
1.7 KiB
Diff
42 lines
1.7 KiB
Diff
From 327d4be878fe3153861c000211b5b7dad3c91111 Mon Sep 17 00:00:00 2001
|
|
Message-Id: <327d4be878fe3153861c000211b5b7dad3c91111.1596234183.git.zanussi@kernel.org>
|
|
In-Reply-To: <378ee68279f6a7631221f2670a9298620148690d.1596234183.git.zanussi@kernel.org>
|
|
References: <378ee68279f6a7631221f2670a9298620148690d.1596234183.git.zanussi@kernel.org>
|
|
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
Date: Tue, 9 Oct 2018 17:34:50 +0200
|
|
Subject: [PATCH 028/329] sched/migrate_disable: Add export_symbol_gpl for
|
|
__migrate_disabled
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.135-rt60.tar.xz
|
|
|
|
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>
|
|
---
|
|
kernel/sched/core.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
|
|
index 77afdcb4d3ba..541c7222ffc2 100644
|
|
--- a/kernel/sched/core.c
|
|
+++ b/kernel/sched/core.c
|
|
@@ -1013,6 +1013,7 @@ int __migrate_disabled(struct task_struct *p)
|
|
{
|
|
return p->migrate_disable;
|
|
}
|
|
+EXPORT_SYMBOL_GPL(__migrate_disabled);
|
|
#endif
|
|
|
|
static void __do_set_cpus_allowed_tail(struct task_struct *p,
|
|
--
|
|
2.17.1
|
|
|