aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-10-07 09:08:51 -0400
committerDavid Howells <dhowells@redhat.com>2010-10-07 09:08:51 -0400
commit5c74874bc9a838b185fe463153e63f7d895ebb77 (patch)
tree0aba98d068108643ade86de9cdb21443a463aca5 /arch/blackfin
parentdb36b906fefa5b95039bd418bc354ffc9b141020 (diff)
Blackfin: Add missing dep to asm/irqflags.h
Add a missing dependency (mach/blackfin.h) to asm/irqflags.h so that bfin_read_IMASK() can be used by inline functions. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/include/asm/irqflags.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/irqflags.h b/arch/blackfin/include/asm/irqflags.h
index 813a1af3e865..f3ed93144e23 100644
--- a/arch/blackfin/include/asm/irqflags.h
+++ b/arch/blackfin/include/asm/irqflags.h
@@ -8,6 +8,8 @@
8#ifndef __ASM_BFIN_IRQFLAGS_H__ 8#ifndef __ASM_BFIN_IRQFLAGS_H__
9#define __ASM_BFIN_IRQFLAGS_H__ 9#define __ASM_BFIN_IRQFLAGS_H__
10 10
11#include <mach/blackfin.h>
12
11#ifdef CONFIG_SMP 13#ifdef CONFIG_SMP
12# include <asm/pda.h> 14# include <asm/pda.h>
13# include <asm/processor.h> 15# include <asm/processor.h>
@@ -185,7 +187,12 @@ static inline void raw_local_irq_enable(void)
185 bfin_sti(bfin_irq_flags); 187 bfin_sti(bfin_irq_flags);
186} 188}
187 189
188#define raw_local_save_flags(flags) do { (flags) = bfin_read_IMASK(); } while (0) 190static inline unsigned long arch_local_save_flags(void)
191{
192 return bfin_read_IMASK();
193}
194
195#define raw_local_save_flags(flags) do { (flags) = arch_local_save_flags(); } while (0)
189 196
190#define raw_irqs_disabled_flags(flags) (((flags) & ~0x3f) == 0) 197#define raw_irqs_disabled_flags(flags) (((flags) & ~0x3f) == 0)
191 198