ARM: vfp: ensure that thread flushing works if preempted
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 9 Jul 2011 16:41:33 +0000 (17:41 +0100)
committerJason Kridner <jdk@ti.com>
Thu, 15 Sep 2011 18:59:05 +0000 (14:59 -0400)
commit7091740cc65460301763cdd365cf2ccef799273a
treee77a4f84a7da67ee7d534980bbbfe1e7b5ff0fc7
parentc151bacb12990b8b3811971b7bec15e392028766
ARM: vfp: ensure that thread flushing works if preempted

Prevent a preemption event causing the initialized VFP state being
overwritten by ensuring that the VFP hardware access is disabled
prior to starting initialization.  We can then do this in safety
while still allowing preemption to occur.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/vfp/vfpmodule.c