lkml.org 
[lkml]   [2011]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 09/19] OpenRISC: IRQ
Date
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


\
 
 \ /
  Last update: 2011-06-19 21:11    [W:0.197 / U:4.396 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site