提交 27bde183 编写于 作者: A Anshuman Khandual 提交者: Russell King

ARM: 9033/1: arm/smp: Drop the macro S(x,s)

Mapping between IPI type index and its string is direct without requiring
an additional offset. Hence the existing macro S(x, s) is now redundant
and can just be dropped. This also makes the code clean and simple.

Cc: Marc Zyngier <maz@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: NAnshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
上级 76460d61
...@@ -524,14 +524,13 @@ void __init smp_prepare_cpus(unsigned int max_cpus) ...@@ -524,14 +524,13 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
} }
static const char *ipi_types[NR_IPI] __tracepoint_string = { static const char *ipi_types[NR_IPI] __tracepoint_string = {
#define S(x,s) [x] = s [IPI_WAKEUP] = "CPU wakeup interrupts",
S(IPI_WAKEUP, "CPU wakeup interrupts"), [IPI_TIMER] = "Timer broadcast interrupts",
S(IPI_TIMER, "Timer broadcast interrupts"), [IPI_RESCHEDULE] = "Rescheduling interrupts",
S(IPI_RESCHEDULE, "Rescheduling interrupts"), [IPI_CALL_FUNC] = "Function call interrupts",
S(IPI_CALL_FUNC, "Function call interrupts"), [IPI_CPU_STOP] = "CPU stop interrupts",
S(IPI_CPU_STOP, "CPU stop interrupts"), [IPI_IRQ_WORK] = "IRQ work interrupts",
S(IPI_IRQ_WORK, "IRQ work interrupts"), [IPI_COMPLETION] = "completion interrupts",
S(IPI_COMPLETION, "completion interrupts"),
}; };
static void smp_cross_call(const struct cpumask *target, unsigned int ipinr); static void smp_cross_call(const struct cpumask *target, unsigned int ipinr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册