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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 9 Jul 2011 16:41:33 +0000 (17:41 +0100)
commit19dad35fe0f10df8f0524f98037469e3a0dd1ec2
tree30a39e6f54b9a92a389e99773b8691ad901344ae
parentf8f2a8522a88aacd62a310ce49e8dac530d1b403
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