aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/vfp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-04-27 18:04:18 -0700
committerColin Cross <ccross@android.com>2012-04-30 13:15:00 -0700
commit80b8354d535d2e8d6ced0b0e129257dba1fb2130 (patch)
tree6485c4ab1be0d81f05ab7dd76b041570d0bfe14d /arch/arm/vfp
parent6ae285d5333a9c5ebf2a448a73065730b24481f9 (diff)
downloadkernel_samsung_tuna-80b8354d535d2e8d6ced0b0e129257dba1fb2130.zip
kernel_samsung_tuna-80b8354d535d2e8d6ced0b0e129257dba1fb2130.tar.gz
kernel_samsung_tuna-80b8354d535d2e8d6ced0b0e129257dba1fb2130.tar.bz2
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>
Diffstat (limited to 'arch/arm/vfp')
-rw-r--r--arch/arm/vfp/vfpmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c
index f186913..78829fa 100644
--- a/arch/arm/vfp/vfpmodule.c
+++ b/arch/arm/vfp/vfpmodule.c
@@ -427,7 +427,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;
}