diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-08-14 02:29:57 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-08-14 02:29:57 -0400 |
commit | 0e06b50dda5965e0f8a15b0be14b759ead54fd2a (patch) | |
tree | 3b0bf1ba71ba8799e55a7670d8572615443c0ba5 /include/asm-blackfin/bfin-global.h | |
parent | 55546ac45dfb4087437bedaed43400630c96680e (diff) |
Blackfin arch: cleanup cache lock code
- remove cheesy read_iloc() function
- move invalidate_entire_icache function to lock.S
- export proper prototypes for functions in lock.S
- only build lock.S when BFIN_ICACHE_LOCK is enabled
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'include/asm-blackfin/bfin-global.h')
-rw-r--r-- | include/asm-blackfin/bfin-global.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-blackfin/bfin-global.h b/include/asm-blackfin/bfin-global.h index 93ae5335e8a3..78eb389d200a 100644 --- a/include/asm-blackfin/bfin-global.h +++ b/include/asm-blackfin/bfin-global.h | |||
@@ -62,7 +62,6 @@ extern void _cplb_hdr(void); | |||
62 | /* Blackfin cache functions */ | 62 | /* Blackfin cache functions */ |
63 | extern void bfin_icache_init(void); | 63 | extern void bfin_icache_init(void); |
64 | extern void bfin_dcache_init(void); | 64 | extern void bfin_dcache_init(void); |
65 | extern int read_iloc(void); | ||
66 | extern int bfin_console_init(void); | 65 | extern int bfin_console_init(void); |
67 | extern asmlinkage void lower_to_irq14(void); | 66 | extern asmlinkage void lower_to_irq14(void); |
68 | extern asmlinkage void bfin_return_from_exception(void); | 67 | extern asmlinkage void bfin_return_from_exception(void); |
@@ -126,6 +125,11 @@ extern char _stext_l1[], _etext_l1[], _sdata_l1[], _edata_l1[], _sbss_l1[], | |||
126 | /* only used when CONFIG_MTD_UCLINUX */ | 125 | /* only used when CONFIG_MTD_UCLINUX */ |
127 | extern unsigned long memory_mtd_start, memory_mtd_end, mtd_size; | 126 | extern unsigned long memory_mtd_start, memory_mtd_end, mtd_size; |
128 | 127 | ||
128 | #ifdef CONFIG_BFIN_ICACHE_LOCK | ||
129 | extern void cache_grab_lock(int way); | ||
130 | extern void cache_lock(int way); | ||
131 | #endif | ||
132 | |||
129 | #endif | 133 | #endif |
130 | 134 | ||
131 | #endif /* _BLACKFIN_H_ */ | 135 | #endif /* _BLACKFIN_H_ */ |