LoongArch: Export symbol for function smp_send_reschedule()
authorBibo Mao <maobibo@loongson.cn>
Thu, 8 Dec 2022 06:59:15 +0000 (14:59 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 8 Dec 2022 06:59:15 +0000 (14:59 +0800)
commit143d64bdbdb85787953a70332f9e5f658b678550
treec65fbf9751e0dfa2202caa7b526e61575f54816c
parent76dcd734eca23168cb008912c0f69ff408905235
LoongArch: Export symbol for function smp_send_reschedule()

Function smp_send_reschedule() is standard kernel API, which is defined
in header file include/linux/smp.h. However, on LoongArch it is defined
as an inline function, this is confusing and kernel modules can not use
this function.

Now we define smp_send_reschedule() as a general function, and add a
EXPORT_SYMBOL_GPL on this function, so that kernel modules can use it.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/smp.h
arch/loongarch/kernel/smp.c