diff options
Diffstat (limited to 'arch/arm/vfp')
-rw-r--r-- | arch/arm/vfp/vfpmodule.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index 25b89d817105..bbf3da012afd 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c | |||
@@ -489,8 +489,11 @@ void vfp_flush_hwstate(struct thread_info *thread) | |||
489 | 489 | ||
490 | /* | 490 | /* |
491 | * VFP hardware can lose all context when a CPU goes offline. | 491 | * VFP hardware can lose all context when a CPU goes offline. |
492 | * Safely clear our held state when a CPU has been killed, and | 492 | * As we will be running in SMP mode with CPU hotplug, we will save the |
493 | * re-enable access to VFP when the CPU comes back online. | 493 | * hardware state at every thread switch. We clear our held state when |
494 | * a CPU has been killed, indicating that the VFP hardware doesn't contain | ||
495 | * a threads VFP state. When a CPU starts up, we re-enable access to the | ||
496 | * VFP hardware. | ||
494 | * | 497 | * |
495 | * Both CPU_DYING and CPU_STARTING are called on the CPU which | 498 | * Both CPU_DYING and CPU_STARTING are called on the CPU which |
496 | * is being offlined/onlined. | 499 | * is being offlined/onlined. |