mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ARM: vfp: only clear vfp state for current cpu in vfp_pm_suspend
vfp_pm_suspend runs on each cpu, only clear the hardware state pointer for the current cpu. Prevents a possible crash if one cpu clears the hw state pointer when another cpu has already checked if it is valid. Change-Id: I997ab1554944eba86730818ff242d7ebe1b32736 Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
parent
67c2bbb625
commit
9d6d432654
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ static int vfp_pm_suspend(void)
|
|||
}
|
||||
|
||||
/* clear any information we had about last context state */
|
||||
memset(vfp_current_hw_state, 0, sizeof(vfp_current_hw_state));
|
||||
vfp_current_hw_state[ti->cpu] = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue