[PATCH 01/06] ARM: SuperH Mobile ARM, sh7367 and G3EVM support V2

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Feb 5 17:10:09 EST 2010


On Fri, Feb 05, 2010 at 08:14:49PM +0900, Magnus Damm wrote:
> +	.macro  get_irqnr_preamble, base, tmp
> +	.endm
> +
> +	.macro  arch_ret_to_user, tmp1, tmp2
> +	.endm
> +
> +	.macro  get_irqnr_and_base, irqnr, irqstat, base, tmp
> +	ldr     \base, =INTFLGA

There's the potential for an optimisation here - move this instruction
into get_irqnr_preamble, and you'll avoid having to re-load the base
register if there's multiple IRQs pending.



More information about the linux-arm-kernel mailing list