diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2007-01-24 18:47:08 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-01-25 16:35:29 +0000 |
commit | c6428464894889e110418928e6b37dc2eb4cee56 (patch) | |
tree | 292410b297ef2332715aabd7a87ef9fe0c03de4a /include/asm-arm/fpstate.h | |
parent | 412489af76b5c0e4029d4406d93554c22a88fc73 (diff) | |
download | linux-stable-c6428464894889e110418928e6b37dc2eb4cee56.tar.gz linux-stable-c6428464894889e110418928e6b37dc2eb4cee56.tar.bz2 linux-stable-c6428464894889e110418928e6b37dc2eb4cee56.zip |
[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>
Diffstat (limited to 'include/asm-arm/fpstate.h')
-rw-r--r-- | include/asm-arm/fpstate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-arm/fpstate.h b/include/asm-arm/fpstate.h index 6af4e6bd1290..f31cda5a55ee 100644 --- a/include/asm-arm/fpstate.h +++ b/include/asm-arm/fpstate.h @@ -35,6 +35,9 @@ struct vfp_hard_struct { */ __u32 fpinst; __u32 fpinst2; +#ifdef CONFIG_SMP + __u32 cpu; +#endif }; union vfp_state { |