diff options
author | Graf Yang <graf.yang@analog.com> | 2009-09-21 07:51:31 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-01-10 07:18:15 -0500 |
commit | 2c1657c29f810d0ba32cde54cba1e916815493e5 (patch) | |
tree | 882d54edf3f003868af78eb2a92a0782f0c1bfd7 /arch/blackfin | |
parent | 05c3457ec2d5d02aec58d246179df19d6b2de752 (diff) |
Blackfin: SMP: relocate blackfin_core_id() definition
Since we're breaking apart some inter-header dependencies to avoid more
circular loops, move the blackfin_core_id() definition to the func that
it is based upon.
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/include/asm/irqflags.h | 3 | ||||
-rw-r--r-- | arch/blackfin/include/asm/processor.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/blackfin/include/asm/irqflags.h b/arch/blackfin/include/asm/irqflags.h index 41c4d70544ef..3365cb97f539 100644 --- a/arch/blackfin/include/asm/irqflags.h +++ b/arch/blackfin/include/asm/irqflags.h | |||
@@ -13,9 +13,6 @@ | |||
13 | #ifdef CONFIG_SMP | 13 | #ifdef CONFIG_SMP |
14 | # include <asm/pda.h> | 14 | # include <asm/pda.h> |
15 | # include <asm/processor.h> | 15 | # include <asm/processor.h> |
16 | /* Forward decl needed due to cdef inter dependencies */ | ||
17 | static inline uint32_t __pure bfin_dspid(void); | ||
18 | # define blackfin_core_id() (bfin_dspid() & 0xff) | ||
19 | # define bfin_irq_flags cpu_pda[blackfin_core_id()].imask | 16 | # define bfin_irq_flags cpu_pda[blackfin_core_id()].imask |
20 | #else | 17 | #else |
21 | extern unsigned long bfin_irq_flags; | 18 | extern unsigned long bfin_irq_flags; |
diff --git a/arch/blackfin/include/asm/processor.h b/arch/blackfin/include/asm/processor.h index aea880274de7..8af7772e84cc 100644 --- a/arch/blackfin/include/asm/processor.h +++ b/arch/blackfin/include/asm/processor.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #define current_text_addr() ({ __label__ _l; _l: &&_l;}) | 14 | #define current_text_addr() ({ __label__ _l; _l: &&_l;}) |
15 | 15 | ||
16 | #include <asm/ptrace.h> | 16 | #include <asm/ptrace.h> |
17 | #include <asm/blackfin.h> | 17 | #include <mach/blackfin.h> |
18 | 18 | ||
19 | static inline unsigned long rdusp(void) | 19 | static inline unsigned long rdusp(void) |
20 | { | 20 | { |
@@ -134,6 +134,8 @@ static inline uint32_t __pure bfin_dspid(void) | |||
134 | return bfin_read_DSPID(); | 134 | return bfin_read_DSPID(); |
135 | } | 135 | } |
136 | 136 | ||
137 | #define blackfin_core_id() (bfin_dspid() & 0xff) | ||
138 | |||
137 | static inline uint32_t __pure bfin_compiled_revid(void) | 139 | static inline uint32_t __pure bfin_compiled_revid(void) |
138 | { | 140 | { |
139 | #if defined(CONFIG_BF_REV_0_0) | 141 | #if defined(CONFIG_BF_REV_0_0) |