linux/arch/metag/kernel
James Hogan 42748752f6 metag: use clear_tasks_mm_cpumask()
Checking for process->mm is not enough because process' main thread may
exit or detach its mm via use_mm(), but other threads may still have a
valid mm.

To fix this we would need to use find_lock_task_mm(), which would walk
up all threads and returns an appropriate task (with task lock held).

clear_tasks_mm_cpumask() was introduced in v3.5-rc1 to fix this issue,
so let's use it for metag too.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
2013-07-02 11:03:51 +01:00
..
perf metag: perf: prepare for use by oprofile 2013-03-15 13:20:19 +00:00
.gitignore
asm-offsets.c
cachepart.c metag: panic if cache aliasing possible 2013-06-27 13:49:48 +01:00
clock.c metag: log core and timer frequencies from arch code 2013-06-13 12:55:27 +01:00
core_reg.c
da.c metag: export _metag_da_present and cpu_2_hwthread_id 2013-03-27 14:37:52 +00:00
devtree.c
dma.c
ftrace_stub.S
ftrace.c
head.S metag: smp: copy cache partition and enable GCOn 2013-03-15 13:21:17 +00:00
irq.c metag/kernel/irq.c: Declare root_domain as static 2013-06-13 12:55:27 +01:00
kick.c
machines.c
Makefile
metag_ksyms.c
module.c
perf_callchain.c
process.c dump_stack: unify debug information printed by show_regs() 2013-04-30 17:04:02 -07:00
ptrace.c metag: ptrace: Implement NT_METAG_TLS 2013-03-27 14:37:47 +00:00
setup.c metag/setup: Restrict scope for the capabilities variable 2013-06-13 12:55:29 +01:00
signal.c
smp.c metag: use clear_tasks_mm_cpumask() 2013-07-02 11:03:51 +01:00
stacktrace.c
sys_metag.c
tbiunexp.S
tcm.c
time.c metag: init common clk and use "core" clk 2013-06-13 12:54:41 +01:00
topology.c
traps.c metag/traps: include setup.h for the per_cpu_trap_init declaration 2013-06-13 12:55:30 +01:00
user_gateway.S
vmlinux.lds.S