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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:23:55 +0000 (12:23 -0800)
commit24cb37ca9c4b4cae2af806c2195152dfdd8115bf
tree3aafd1df9a9bcb1352837138e49f1d3aa221d7dd
parentfdf12987cb1c6766cd4122ef1d9bc25c41bb2b5e
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