[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201106192109.14874.arnd@arndb.de>
Date: Sun, 19 Jun 2011 21:09:14 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Jonas Bonn <jonas@...thpole.se>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 09/19] OpenRISC: IRQ
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists