[<prev] [next>] [day] [month] [year] [list]
Message-ID: <159100513800.17951.18103491836045415816.tip-bot2@tip-bot2>
Date: Mon, 01 Jun 2020 09:52:18 -0000
From: "tip-bot2 for Ingo Molnar" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Ingo Molnar <mingo@...nel.org>, x86 <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [tip: sched/core] sched/headers: Split out open-coded prototypes into
kernel/sched/smp.h
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 1f8db4150536431b031585ecc2a6793f69245de2
Gitweb: https://git.kernel.org/tip/1f8db4150536431b031585ecc2a6793f69245de2
Author: Ingo Molnar <mingo@...nel.org>
AuthorDate: Thu, 28 May 2020 11:01:34 +02:00
Committer: Ingo Molnar <mingo@...nel.org>
CommitterDate: Thu, 28 May 2020 11:03:20 +02:00
sched/headers: Split out open-coded prototypes into kernel/sched/smp.h
Move the prototypes for sched_ttwu_pending() and send_call_function_single_ipi()
into the newly created kernel/sched/smp.h header, to make sure they are all
the same, and to architectures happy that use -Wmissing-prototypes.
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
kernel/sched/core.c | 1 +
kernel/sched/smp.h | 9 +++++++++
kernel/smp.c | 5 +----
3 files changed, 11 insertions(+), 4 deletions(-)
create mode 100644 kernel/sched/smp.h
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index b3c64c6..43ba2d4 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -20,6 +20,7 @@
#include "../smpboot.h"
#include "pelt.h"
+#include "smp.h"
#define CREATE_TRACE_POINTS
#include <trace/events/sched.h>
diff --git a/kernel/sched/smp.h b/kernel/sched/smp.h
new file mode 100644
index 0000000..9620e32
--- /dev/null
+++ b/kernel/sched/smp.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Scheduler internal SMP callback types and methods between the scheduler
+ * and other internal parts of the core kernel:
+ */
+
+extern void sched_ttwu_pending(void *arg);
+
+extern void send_call_function_single_ipi(int cpu);
diff --git a/kernel/smp.c b/kernel/smp.c
index 0d61dc0..4dec04f 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -22,7 +22,7 @@
#include <linux/hypervisor.h>
#include "smpboot.h"
-
+#include "sched/smp.h"
#define CSD_TYPE(_csd) ((_csd)->flags & CSD_FLAG_TYPE_MASK)
@@ -133,8 +133,6 @@ static __always_inline void csd_unlock(call_single_data_t *csd)
static DEFINE_PER_CPU_SHARED_ALIGNED(call_single_data_t, csd_data);
-extern void send_call_function_single_ipi(int cpu);
-
void __smp_call_single_queue(int cpu, struct llist_node *node)
{
/*
@@ -196,7 +194,6 @@ void generic_smp_call_function_single_interrupt(void)
flush_smp_call_function_queue(true);
}
-extern void sched_ttwu_pending(void *);
extern void irq_work_single(void *);
/**
Powered by blists - more mailing lists