]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Convert VFP/Crunch/XscaleCP thread_release() to exit_thread()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Dec 2009 14:34:43 +0000 (14:34 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Dec 2009 14:53:41 +0000 (14:53 +0000)
commitabb6749759e1696d9f1d763ae02d9a72bec9b396
tree429a08d54bb870c720139a3f04ad27ded7f93a8f
parent5ab6ce9d00ec35972e142c1b11f1e07c3c0dd774
ARM: Convert VFP/Crunch/XscaleCP thread_release() to exit_thread()

This avoids races in the VFP code where the dead thread may have
state on another CPU.  By moving this code to exit_thread(), we
will be running as the thread, and therefore be running on the
current CPU.

This means that we can ensure that the only local state is accessed
in the thread notifiers.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/thread_notify.h
arch/arm/kernel/crunch.c
arch/arm/kernel/process.c
arch/arm/kernel/xscale-cp0.c
arch/arm/vfp/vfpmodule.c