]> 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)
commit35dff08261f199a15d6737b47df940aafba7b6a7
tree074a43d5bd64bfdb86d9682953b292c625408813
parent32efb683e466e6b24d2a0a663776a0a1fadf03a5
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