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)
committerColin Cross <ccross@android.com>
Mon, 12 Sep 2011 00:27:02 +0000 (17:27 -0700)
commit4f77fd436e53acf5bc0a06a24331f64b07fb33ec
tree4a1c5a803ce69514b2b4cf534ba3aa71db78328e
parentc0822d4f0bcccf227b751cfe1c047f3bdae0f1ce
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