From: Russell King Date: Sat, 6 Feb 2010 11:27:45 +0000 (+0000) Subject: ARM: vfp: fix vfp_sync_state() X-Git-Tag: v2.6.34-rc1~241^2~1^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54cb3dbb4a1cccd6b1bffc169ff638f8e74daf44;p=pandora-kernel.git ARM: vfp: fix vfp_sync_state() The more I look at vfp_sync_state(), the more I believe it's trying to do its job in a really obscure way. Essentially, last_VFP_context[] tracks who owns the state in the VFP hardware. If last_VFP_context[] is the context for the thread which we're interested in, then the VFP hardware has context which is not saved in the software state - so we need to bring the software state up to date. If last_VFP_context[] is for some other thread, we really don't care what state the VFP hardware is in; it doesn't contain any information pertinent to the thread we're trying to deal with - so don't touch the hardware. Signed-off-by: Russell King --- Reading git-diff-tree failed