diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2013-09-17 14:53:09 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2013-11-13 14:21:47 -0500 |
commit | 00d1a39e69d5afa7523dad515a05b21abd17c389 (patch) | |
tree | 7cc9ab44899be1b50d05f0154345bd0c9e9c0f96 /arch/sh | |
parent | 9385d949d5bd0eb642ed05ea263c3638c9f4e372 (diff) |
preempt: Make PREEMPT_ACTIVE generic
No point in having this bit defined by architecture.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20130917183629.090698799@linutronix.de
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/thread_info.h | 2 | ||||
-rw-r--r-- | arch/sh/kernel/entry-common.S | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/arch/sh/include/asm/thread_info.h b/arch/sh/include/asm/thread_info.h index 45a93669289d..ad27ffa65e2e 100644 --- a/arch/sh/include/asm/thread_info.h +++ b/arch/sh/include/asm/thread_info.h | |||
@@ -41,8 +41,6 @@ struct thread_info { | |||
41 | 41 | ||
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | #define PREEMPT_ACTIVE 0x10000000 | ||
45 | |||
46 | #if defined(CONFIG_4KSTACKS) | 44 | #if defined(CONFIG_4KSTACKS) |
47 | #define THREAD_SHIFT 12 | 45 | #define THREAD_SHIFT 12 |
48 | #else | 46 | #else |
diff --git a/arch/sh/kernel/entry-common.S b/arch/sh/kernel/entry-common.S index 9b6e4beeb296..ca46834294b7 100644 --- a/arch/sh/kernel/entry-common.S +++ b/arch/sh/kernel/entry-common.S | |||
@@ -108,7 +108,7 @@ need_resched: | |||
108 | and #(0xf0>>1), r0 ! interrupts off (exception path)? | 108 | and #(0xf0>>1), r0 ! interrupts off (exception path)? |
109 | cmp/eq #(0xf0>>1), r0 | 109 | cmp/eq #(0xf0>>1), r0 |
110 | bt noresched | 110 | bt noresched |
111 | mov.l 3f, r0 | 111 | mov.l 1f, r0 |
112 | jsr @r0 ! call preempt_schedule_irq | 112 | jsr @r0 ! call preempt_schedule_irq |
113 | nop | 113 | nop |
114 | bra need_resched | 114 | bra need_resched |
@@ -119,9 +119,7 @@ noresched: | |||
119 | nop | 119 | nop |
120 | 120 | ||
121 | .align 2 | 121 | .align 2 |
122 | 1: .long PREEMPT_ACTIVE | 122 | 1: .long preempt_schedule_irq |
123 | 2: .long schedule | ||
124 | 3: .long preempt_schedule_irq | ||
125 | #endif | 123 | #endif |
126 | 124 | ||
127 | ENTRY(resume_userspace) | 125 | ENTRY(resume_userspace) |