diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-11-18 04:48:22 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-11-18 04:48:22 -0500 |
commit | 400597842452c02916a61a51f3154dd032c2d569 (patch) | |
tree | ccb11e389a940ee9d8aa5c7654afd73063bdc950 | |
parent | b60705765a635728187e5cea5f36914886675013 (diff) |
Blackfin arch: rename irq_flags to bfin_irq_flags
rename irq_flags to bfin_irq_flags to avoid namespace
collision with common code
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
-rw-r--r-- | arch/blackfin/include/asm/context.S | 4 | ||||
-rw-r--r-- | arch/blackfin/include/asm/irq.h | 8 | ||||
-rw-r--r-- | arch/blackfin/mach-common/entry.S | 4 | ||||
-rw-r--r-- | arch/blackfin/mach-common/ints-priority.c | 16 | ||||
-rw-r--r-- | arch/blackfin/mach-common/smp.c | 2 |
5 files changed, 17 insertions, 17 deletions
diff --git a/arch/blackfin/include/asm/context.S b/arch/blackfin/include/asm/context.S index 40d20b4a9b1f..9ce21f68e914 100644 --- a/arch/blackfin/include/asm/context.S +++ b/arch/blackfin/include/asm/context.S | |||
@@ -307,8 +307,8 @@ | |||
307 | GET_PDA(p0, r0); | 307 | GET_PDA(p0, r0); |
308 | r0 = [p0 + PDA_IRQFLAGS]; | 308 | r0 = [p0 + PDA_IRQFLAGS]; |
309 | #else | 309 | #else |
310 | p0.h = _irq_flags; | 310 | p0.h = _bfin_irq_flags; |
311 | p0.l = _irq_flags; | 311 | p0.l = _bfin_irq_flags; |
312 | r0 = [p0]; | 312 | r0 = [p0]; |
313 | #endif | 313 | #endif |
314 | sti r0; | 314 | sti r0; |
diff --git a/arch/blackfin/include/asm/irq.h b/arch/blackfin/include/asm/irq.h index e43c20583fcd..21e25f778a63 100644 --- a/arch/blackfin/include/asm/irq.h +++ b/arch/blackfin/include/asm/irq.h | |||
@@ -49,16 +49,16 @@ static __inline__ int irq_canonicalize(int irq) | |||
49 | /* Forward decl needed due to cdef inter dependencies */ | 49 | /* Forward decl needed due to cdef inter dependencies */ |
50 | static inline uint32_t __pure bfin_dspid(void); | 50 | static inline uint32_t __pure bfin_dspid(void); |
51 | # define blackfin_core_id() (bfin_dspid() & 0xff) | 51 | # define blackfin_core_id() (bfin_dspid() & 0xff) |
52 | # define irq_flags cpu_pda[blackfin_core_id()].imask | 52 | # define bfin_irq_flags cpu_pda[blackfin_core_id()].imask |
53 | #else | 53 | #else |
54 | extern unsigned long irq_flags; | 54 | extern unsigned long bfin_irq_flags; |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | #define local_irq_enable() \ | 57 | #define local_irq_enable() \ |
58 | __asm__ __volatile__( \ | 58 | __asm__ __volatile__( \ |
59 | "sti %0;" \ | 59 | "sti %0;" \ |
60 | : \ | 60 | : \ |
61 | : "d" (irq_flags) \ | 61 | : "d" (bfin_irq_flags) \ |
62 | ) | 62 | ) |
63 | 63 | ||
64 | #define idle_with_irq_disabled() \ | 64 | #define idle_with_irq_disabled() \ |
@@ -68,7 +68,7 @@ extern unsigned long irq_flags; | |||
68 | "sti %0;" \ | 68 | "sti %0;" \ |
69 | "idle;" \ | 69 | "idle;" \ |
70 | : \ | 70 | : \ |
71 | : "d" (irq_flags) \ | 71 | : "d" (bfin_irq_flags) \ |
72 | ) | 72 | ) |
73 | 73 | ||
74 | #ifdef CONFIG_DEBUG_HWERR | 74 | #ifdef CONFIG_DEBUG_HWERR |
diff --git a/arch/blackfin/mach-common/entry.S b/arch/blackfin/mach-common/entry.S index 5531f49c84e6..e22c0a5cf32d 100644 --- a/arch/blackfin/mach-common/entry.S +++ b/arch/blackfin/mach-common/entry.S | |||
@@ -922,8 +922,8 @@ _schedule_and_signal_from_int: | |||
922 | GET_PDA(p0, r0); /* Fetch current PDA (can't migrate to other CPU here) */ | 922 | GET_PDA(p0, r0); /* Fetch current PDA (can't migrate to other CPU here) */ |
923 | r0 = [p0 + PDA_IRQFLAGS]; | 923 | r0 = [p0 + PDA_IRQFLAGS]; |
924 | #else | 924 | #else |
925 | p0.l = _irq_flags; | 925 | p0.l = _bfin_irq_flags; |
926 | p0.h = _irq_flags; | 926 | p0.h = _bfin_irq_flags; |
927 | r0 = [p0]; | 927 | r0 = [p0]; |
928 | #endif | 928 | #endif |
929 | sti r0; | 929 | sti r0; |
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c index 2efddcecc42b..5a7c1c177d23 100644 --- a/arch/blackfin/mach-common/ints-priority.c +++ b/arch/blackfin/mach-common/ints-priority.c | |||
@@ -64,8 +64,8 @@ | |||
64 | * it would live otherwise). The 0x1f magic represents the IRQs we | 64 | * it would live otherwise). The 0x1f magic represents the IRQs we |
65 | * cannot actually mask out in hardware. | 65 | * cannot actually mask out in hardware. |
66 | */ | 66 | */ |
67 | unsigned long irq_flags = 0x1f; | 67 | unsigned long bfin_irq_flags = 0x1f; |
68 | EXPORT_SYMBOL(irq_flags); | 68 | EXPORT_SYMBOL(bfin_irq_flags); |
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | /* The number of spurious interrupts */ | 71 | /* The number of spurious interrupts */ |
@@ -134,21 +134,21 @@ static void bfin_ack_noop(unsigned int irq) | |||
134 | 134 | ||
135 | static void bfin_core_mask_irq(unsigned int irq) | 135 | static void bfin_core_mask_irq(unsigned int irq) |
136 | { | 136 | { |
137 | irq_flags &= ~(1 << irq); | 137 | bfin_irq_flags &= ~(1 << irq); |
138 | if (!irqs_disabled()) | 138 | if (!irqs_disabled()) |
139 | local_irq_enable(); | 139 | local_irq_enable(); |
140 | } | 140 | } |
141 | 141 | ||
142 | static void bfin_core_unmask_irq(unsigned int irq) | 142 | static void bfin_core_unmask_irq(unsigned int irq) |
143 | { | 143 | { |
144 | irq_flags |= 1 << irq; | 144 | bfin_irq_flags |= 1 << irq; |
145 | /* | 145 | /* |
146 | * If interrupts are enabled, IMASK must contain the same value | 146 | * If interrupts are enabled, IMASK must contain the same value |
147 | * as irq_flags. Make sure that invariant holds. If interrupts | 147 | * as bfin_irq_flags. Make sure that invariant holds. If interrupts |
148 | * are currently disabled we need not do anything; one of the | 148 | * are currently disabled we need not do anything; one of the |
149 | * callers will take care of setting IMASK to the proper value | 149 | * callers will take care of setting IMASK to the proper value |
150 | * when reenabling interrupts. | 150 | * when reenabling interrupts. |
151 | * local_irq_enable just does "STI irq_flags", so it's exactly | 151 | * local_irq_enable just does "STI bfin_irq_flags", so it's exactly |
152 | * what we need. | 152 | * what we need. |
153 | */ | 153 | */ |
154 | if (!irqs_disabled()) | 154 | if (!irqs_disabled()) |
@@ -1048,7 +1048,7 @@ int __init init_arch_irq(void) | |||
1048 | CSYNC(); | 1048 | CSYNC(); |
1049 | 1049 | ||
1050 | printk(KERN_INFO "Configuring Blackfin Priority Driven Interrupts\n"); | 1050 | printk(KERN_INFO "Configuring Blackfin Priority Driven Interrupts\n"); |
1051 | /* IMASK=xxx is equivalent to STI xx or irq_flags=xx, | 1051 | /* IMASK=xxx is equivalent to STI xx or bfin_irq_flags=xx, |
1052 | * local_irq_enable() | 1052 | * local_irq_enable() |
1053 | */ | 1053 | */ |
1054 | program_IAR(); | 1054 | program_IAR(); |
@@ -1056,7 +1056,7 @@ int __init init_arch_irq(void) | |||
1056 | search_IAR(); | 1056 | search_IAR(); |
1057 | 1057 | ||
1058 | /* Enable interrupts IVG7-15 */ | 1058 | /* Enable interrupts IVG7-15 */ |
1059 | irq_flags |= IMASK_IVG15 | | 1059 | bfin_irq_flags |= IMASK_IVG15 | |
1060 | IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 | | 1060 | IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 | |
1061 | IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW; | 1061 | IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW; |
1062 | 1062 | ||
diff --git a/arch/blackfin/mach-common/smp.c b/arch/blackfin/mach-common/smp.c index 7aeecedd3147..66c47a702da4 100644 --- a/arch/blackfin/mach-common/smp.c +++ b/arch/blackfin/mach-common/smp.c | |||
@@ -365,7 +365,7 @@ static void __cpuinit setup_secondary(unsigned int cpu) | |||
365 | 365 | ||
366 | /* Enable interrupt levels IVG7-15. IARs have been already | 366 | /* Enable interrupt levels IVG7-15. IARs have been already |
367 | * programmed by the boot CPU. */ | 367 | * programmed by the boot CPU. */ |
368 | irq_flags |= IMASK_IVG15 | | 368 | bfin_irq_flags |= IMASK_IVG15 | |
369 | IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 | | 369 | IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 | |
370 | IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW; | 370 | IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW; |
371 | 371 | ||