summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-01-12 09:55:10 +0100
committerMichal Simek <monstr@monstr.eu>2010-03-11 14:07:32 +0100
commit777537905744c28b02c283692e7f75f5445c1afa (patch)
tree57cde0f7938efaf1eb54b69b9d149c867f714e2c /arch/microblaze/include
parent733cc2183116b216abb52e709709bb0e626c9a75 (diff)
downloadblackbird-op-linux-777537905744c28b02c283692e7f75f5445c1afa.tar.gz
blackbird-op-linux-777537905744c28b02c283692e7f75f5445c1afa.zip
microblaze: Add support from PREEMPT
This patch add core PREEMPT support for Microblaze. I tried to trace it via tracers and I was able to see any output. I also added low level debug functions to see if that code is called. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r--arch/microblaze/include/asm/tlbflush.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/tlbflush.h b/arch/microblaze/include/asm/tlbflush.h
index 10ec70cd8735..bcb8b41d55af 100644
--- a/arch/microblaze/include/asm/tlbflush.h
+++ b/arch/microblaze/include/asm/tlbflush.h
@@ -23,7 +23,7 @@
extern void _tlbie(unsigned long address);
extern void _tlbia(void);
-#define __tlbia() _tlbia()
+#define __tlbia() { preempt_disable(); _tlbia(); preempt_enable(); }
static inline void local_flush_tlb_all(void)
{ __tlbia(); }
OpenPOWER on IntegriCloud