[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210119140609.106420-1-chenjun102@huawei.com>
Date: Tue, 19 Jan 2021 14:06:09 +0000
From: Chen Jun <chenjun102@...wei.com>
To: <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
CC: <catalin.marinas@....com>, <will@...nel.org>,
<lorenzo.pieralisi@....com>, <rui.xiang@...wei.com>,
<guohanjun@...wei.com>, <houtao1@...wei.com>
Subject: [PATCH] arm64: kernel: Make IPI_WAKEUP under control of CONFIG_ARM64_ACPI_PARKING_PROTOCOL
since commit 5e89c55e4ed81d7abb1ce8828db35fa389dc0e90
("arm64: kernel: implement ACPI parking protocol")
On arm64, IPI 6 will be wasted without setting
CONFIG_ARM64_ACPI_PARKING_PROTOCOL.
Signed-off-by: Chen Jun <chenjun102@...wei.com>
---
arch/arm64/kernel/smp.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
index ad00f99ee9b0..8b494ad1c61e 100644
--- a/arch/arm64/kernel/smp.c
+++ b/arch/arm64/kernel/smp.c
@@ -73,7 +73,9 @@ enum ipi_msg_type {
IPI_CPU_CRASH_STOP,
IPI_TIMER,
IPI_IRQ_WORK,
+#ifdef CONFIG_ARM64_ACPI_PARKING_PROTOCOL
IPI_WAKEUP,
+#endif
NR_IPI
};
@@ -795,7 +797,9 @@ static const char *ipi_types[NR_IPI] __tracepoint_string = {
[IPI_CPU_CRASH_STOP] = "CPU stop (for crash dump) interrupts",
[IPI_TIMER] = "Timer broadcast interrupts",
[IPI_IRQ_WORK] = "IRQ work interrupts",
+#ifdef CONFIG_ARM64_ACPI_PARKING_PROTOCOL
[IPI_WAKEUP] = "CPU wake-up interrupts",
+#endif
};
static void smp_cross_call(const struct cpumask *target, unsigned int ipinr);
--
2.25.0
Powered by blists - more mailing lists