summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Chubb2005-06-24 06:14:00 +0200
committerTony Luck2005-06-28 19:01:19 +0200
commita68db763af9b676590c3fe9ec3f17bf18015eb2f (patch)
tree9862af81932797f0e68f7053d253e6b6b581ea3d /include
parent[IA64] Replace stale KDB-code with useful MAGIC_SYSRQ code in simserial.c (diff)
downloadkernel-qcow2-linux-a68db763af9b676590c3fe9ec3f17bf18015eb2f.tar.gz
kernel-qcow2-linux-a68db763af9b676590c3fe9ec3f17bf18015eb2f.tar.xz
kernel-qcow2-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')
-rw-r--r--include/asm-ia64/mmu_context.h3
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)
{