Skip to content

Commit 8ac2a17

Browse files
Robert RichterKAGA-KOKO
authored andcommitted
irqchip/gicv3-its: Use new jump label API
Use newly introduced jump label API. Make this a separate patch for easier backporting to older kernels of the errata patch set. Signed-off-by: Robert Richter <rrichter@cavium.com> Reviewed-by: Marc Zygnier <marc.zyngier@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Tirumalesh Chalamarla <tchalamarla@cavium.com> Cc: linux-arm-kernel@lists.infradead.org Cc: Jason Cooper <jason@lakedaemon.net> Link: http://lkml.kernel.org/r/1442869119-1814-7-git-send-email-rric@kernel.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 9410097 commit 8ac2a17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/irqchip/irq-gic-v3.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ static u64 gic_read_iar_cavium_thunderx(void)
139139
return irqstat;
140140
}
141141

142-
static struct static_key is_cavium_thunderx = STATIC_KEY_INIT_FALSE;
142+
static DEFINE_STATIC_KEY_FALSE(is_cavium_thunderx);
143143

144144
static u64 __maybe_unused gic_read_iar(void)
145145
{
146-
if (static_key_false(&is_cavium_thunderx))
146+
if (static_branch_unlikely(&is_cavium_thunderx))
147147
return gic_read_iar_cavium_thunderx();
148148
else
149149
return gic_read_iar_common();
@@ -871,7 +871,7 @@ static const struct irq_domain_ops gic_irq_domain_ops = {
871871
static void gicv3_enable_quirks(void)
872872
{
873873
if (cpus_have_cap(ARM64_WORKAROUND_CAVIUM_23154))
874-
static_key_slow_inc(&is_cavium_thunderx);
874+
static_branch_enable(&is_cavium_thunderx);
875875
}
876876

877877
static int __init gic_of_init(struct device_node *node, struct device_node *parent)

0 commit comments

Comments
 (0)