]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gicv3-its: Read typer register outside the loop
authorRobert Richter <rrichter@cavium.com>
Mon, 21 Sep 2015 20:58:36 +0000 (22:58 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Sep 2015 08:10:53 +0000 (10:10 +0200)
commit3be8641ba0b290c6305d12e5693f3435fadde5ae
tree0a07049a7e51122f007b0b222fedec94822c0792
parent9f5a2a4eaf5cf60d9e4058a82508b1f473138580
irqchip/gicv3-its: Read typer register outside the loop

No need to read the typer register in the loop. Values do not change.

This patch is basically a prerequisite for a follow-on patch that adds
errata code for Cavium ThunderX. It moves the calculation of the
number of id entries to the beginning of the function close to other
setup values that are needed to allocate the its table. Now we have a
central location to modify the setup parameters and the errata code
can be implemented in a single block.

Signed-off-by: Robert Richter <rrichter@cavium.com>
Acked-by: Marc Zyngier <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-4-git-send-email-rric@kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-gic-v3-its.c