]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
Blackfin: SMP: relocate blackfin_core_id() definition
authorGraf Yang <graf.yang@analog.com>
Mon, 21 Sep 2009 11:51:31 +0000 (11:51 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 10 Jan 2011 12:18:15 +0000 (07:18 -0500)
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>
arch/blackfin/include/asm/irqflags.h
arch/blackfin/include/asm/processor.h

index 41c4d70544ef4811cd23c85f03c68122221f7aae..3365cb97f539a7ede6d2a6e225b2ec69b579b4b6 100644 (file)
@@ -13,9 +13,6 @@
 #ifdef CONFIG_SMP
 # include <asm/pda.h>
 # include <asm/processor.h>
-/* Forward decl needed due to cdef inter dependencies */
-static inline uint32_t __pure bfin_dspid(void);
-# define blackfin_core_id() (bfin_dspid() & 0xff)
 # define bfin_irq_flags cpu_pda[blackfin_core_id()].imask
 #else
 extern unsigned long bfin_irq_flags;
index aea880274de7223f99c5049425c8c5a1b64b603a..8af7772e84ccfdcfbba38d1b11eca4cad1926d45 100644 (file)
@@ -14,7 +14,7 @@
 #define current_text_addr() ({ __label__ _l; _l: &&_l;})
 
 #include <asm/ptrace.h>
-#include <asm/blackfin.h>
+#include <mach/blackfin.h>
 
 static inline unsigned long rdusp(void)
 {
@@ -134,6 +134,8 @@ static inline uint32_t __pure bfin_dspid(void)
        return bfin_read_DSPID();
 }
 
+#define blackfin_core_id() (bfin_dspid() & 0xff)
+
 static inline uint32_t __pure bfin_compiled_revid(void)
 {
 #if defined(CONFIG_BF_REV_0_0)