diff options
author | Peter Chubb <peterc@gelato.unsw.edu.au> | 2005-06-24 06:14:00 +0200 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-06-28 19:01:19 +0200 |
commit | a68db763af9b676590c3fe9ec3f17bf18015eb2f (patch) | |
tree | 9862af81932797f0e68f7053d253e6b6b581ea3d /include/asm-ia64/mmu_context.h | |
parent | [IA64] Replace stale KDB-code with useful MAGIC_SYSRQ code in simserial.c (diff) | |
download | linux-a68db763af9b676590c3fe9ec3f17bf18015eb2f.tar.xz linux-a68db763af9b676590c3fe9ec3f17bf18015eb2f.zip |
[IA64] Fix another IA64 preemption problem
There's another problem shown up by Ingo's recent patch to make
smp_processor_id() complain if it's called with preemption enabled.
local_finish_flush_tlb_mm() calls activate_context() in a situation
where it could be rescheduled to another processor. This patch
disables preemption around the call.
Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64/mmu_context.h')
-rw-r--r-- | include/asm-ia64/mmu_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-ia64/mmu_context.h b/include/asm-ia64/mmu_context.h index 0096e7e05012..e3e5fededb04 100644 --- a/include/asm-ia64/mmu_context.h +++ b/include/asm-ia64/mmu_context.h @@ -132,6 +132,9 @@ reload_context (mm_context_t context) ia64_srlz_i(); /* srlz.i implies srlz.d */ } +/* + * Must be called with preemption off + */ static inline void activate_context (struct mm_struct *mm) { |