diff options
author | Colin Cross <[email protected]> | 2012-07-20 02:03:42 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2012-07-31 10:30:43 +0100 |
commit | 24b35521b8ddf088531258f06f681bb7b227bf47 (patch) | |
tree | 3edada314d07fb2d02dbda510ef0aeddf1e77733 /tools/perf/util/trace-event-scripting.c | |
parent | a84b895a2348f0dbff31b71ddf954f70a6cde368 (diff) |
ARM: 7477/1: vfp: Always save VFP state in vfp_pm_suspend on UP
vfp_pm_suspend should save the VFP state in suspend after
any lazy context switch. If it only saves when the VFP is enabled,
the state can get lost when, on a UP system:
Thread 1 uses the VFP
Context switch occurs to thread 2, VFP is disabled but the
VFP context is not saved
Thread 2 initiates suspend
vfp_pm_suspend is called with the VFP disabled, and the unsaved
VFP context of Thread 1 in the registers
Modify vfp_pm_suspend to save the VFP context whenever
vfp_current_hw_state is not NULL.
Includes a fix from Ido Yariv <[email protected]>, who pointed out that on
SMP systems, the state pointer can be pointing to a freed task struct if
a task exited on another cpu, fixed by using #ifndef CONFIG_SMP in the
new if clause.
Cc: Barry Song <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Ido Yariv <[email protected]>
Cc: Daniel Drake <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: [email protected]
Signed-off-by: Colin Cross <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions