Re: [PATCH 09/19] OpenRISC: IRQ

From: Arnd Bergmann
Date: Sun Jun 19 2011 - 15:09:50 EST


On Sunday 19 June 2011 13:43:35 Jonas Bonn wrote:
> +
> +/* read interrupt enabled status */
> +unsigned long arch_local_save_flags(void) {
> + return (mfspr(SPR_SR) & (SPR_SR_IEE|SPR_SR_TEE));
> +}
> +EXPORT_SYMBOL(arch_local_save_flags);
> +
> +/* set interrupt enabled status */
> +void arch_local_irq_restore(unsigned long flags) {
> + mtspr(SPR_SR, ((mfspr(SPR_SR) & ~(SPR_SR_IEE|SPR_SR_TEE)) | flags));
> +}
> +EXPORT_SYMBOL(arch_local_irq_restore);

These are rather simple but common operations, how about making them inline?

Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/