[ARM] 4111/1: Allow VFP to work with thread migration on SMP
The current lazy saving of the VFP registers is no longer possible with thread migration on SMP. This patch implements a per-CPU vfp-state pointer and the saving of the VFP registers at every context switch. The registers restoring is still performed in a lazy way. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
412489af76
commit
c642846489
@ -35,6 +35,9 @@ struct vfp_hard_struct {
|
||||
*/
|
||||
__u32 fpinst;
|
||||
__u32 fpinst2;
|
||||
#ifdef CONFIG_SMP
|
||||
__u32 cpu;
|
||||
#endif
|
||||
};
|
||||
|
||||
union vfp_state {
|
||||
|
Reference in New Issue
Block a user