OSDN Git Service

irqchip/gic: Update supports_deactivate static key to modern api
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 26 Mar 2018 21:09:25 +0000 (14:09 -0700)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 28 Mar 2018 14:24:15 +0000 (15:24 +0100)
commitd01d327406d9c36e066181240ac078b636871de8
treee226f56be16c35fe6832a4d3f2a1cf87c1f5275e
parent6eb486b66a3094cdcd68dc39c9df3a29d6a51dd5
irqchip/gic: Update supports_deactivate static key to modern api

No changes in semantics -- key init is true; replace

static_key_slow_dec       with   static_branch_disable
static_key_true           with   static_branch_likely

The first is because we never actually do any couterpart incs,
thus there is really no reference counting semantics going on.
Use the more proper static_branch_disable() construct.

Also added a '_key' suffix to supports_deactivate, for better
self documentation.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3.c
drivers/irqchip/irq-gic.c