]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic-v3: Make gic_enable_sre an inline function
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 30 Sep 2015 10:48:01 +0000 (11:48 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Oct 2015 21:16:52 +0000 (22:16 +0100)
commitc9113f7c14c5cde5a80d1cd30cf9cac373cdefcf
tree074a43d5bd64bfdb86d9682953b292c625408813
parentc9c58b94c14e466da853787a2ea529c040e11c01
irqchip/gic-v3: Make gic_enable_sre an inline function

In order for gic_enable_sre to be used by the arm64 core code,
move it to arm-gic-v3.h. As a bonus, we now also check if
system registers have been already enabled, and return early
if they have.

In all cases, the function now returns a boolean indicating if
the enabling has been successful.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3.c
include/linux/irqchip/arm-gic-v3.h