[PATCH 3/3] ARM: convert asm/irqflags.h to use asm-generic/irqflags.h

Hui Wang jason77.wang at gmail.com
Mon Jul 16 02:35:52 EDT 2012


Rob Herring wrote:
> From: Rob Herring <rob.herring at calxeda.com>
>
> By implmenting arch_local_irq_restore with constant flags, we can use
> asm-generic/irqflags.h and remove some of the ARM version of irqflags.h.
>
>   
[...]
> -		: "r" (flags)
> -		: "memory", "cc");
> -}
> -
>  static inline int arch_irqs_disabled_flags(unsigned long flags)
>  {
>  	return flags & PSR_I_BIT;
>  }
> +#define arch_irqs_disabled_flags arch_irqs_disabled_flags
> +
>   
Why don't directly define arch_irqs_disabled_flags like that:

#define arch_irqs_disabled_flags(flags) (flags & PSR_I_BIT)

> +#include <asm-generic/irqflags.h>
>  
>  #endif
>  #endif
>   




More information about the linux-arm-kernel mailing list