]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50c949730863fee193f44dc4ca4d04308d03cb60
treee226f56be16c35fe6832a4d3f2a1cf87c1f5275e
parent1a790db58531989c16830594da8dc79cf7f54b6e
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