ARM: VFP: add support to sync the VFP state of the current thread
authorImre Deak <imre.deak@nokia.com>
Thu, 4 Feb 2010 19:38:02 +0000 (21:38 +0200)
committerKoen Kooi <koen@dominion.thruhere.net>
Sun, 9 May 2010 10:47:38 +0000 (12:47 +0200)
commitd3c14324b23c6cef8452a9a6037b6ec2a6f07d6e
treee213dcde10a42b50c9e70ec659b9a20d6004cc90
parentc6c2fc6a66a56256bb2fe015fb07b062666ee246
ARM: VFP: add support to sync the VFP state of the current thread

ARM: VFP: add support to sync the VFP state of the current thread

So far vfp_sync_state worked only for threads other than the current
one. This worked for tracing other threads, but not for PTRACE_TRACEME.
Syncing for the current thread will also be needed by an upcoming patch
adding support for VFP context save / restore around signal handlers.

For SMP we need get_cpu now, since we have to protect the FPEXC
register, other than this things remained the same for threads other
than the current.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
arch/arm/vfp/vfpmodule.c