Skip to contentSkip to conversation

ARM: vfp: Go back to clearing vfp_current_hw_state[]

PATCH New Fabio Estevam 1 participant 1 message Jan 15, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: vfp: Go back to clearing vfp_current_hw_state[]

From: Fabio Estevam <[email protected]>

Commit 384b38b66947 ("ARM: 7873/1: vfp: clear vfp_current_hw_state for dying cpu") fixed the cpu dying notifier by clearing vfp_current_hw_state[]. However commit e5b61bafe704 ("arm: Convert VFP hotplug notifiers to state machine") incorrectly used the original vfp_force_reload() function in the cpu dying notifier.

Fix it by going back to clearing vfp_current_hw_state[].

Fixes e5b61bafe704 ("arm: Convert VFP hotplug notifiers to state machine")
Cc linux-stable <[email protected]>

---
Changes since v1:
- Improve the commit message

 arch/arm/vfp/vfpmodule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/vfp/vfpmodule.c +1 -1
index a71a48e..aa7496b 100644
@@ -648,7 +648,7 @@ int vfp_restore_user_hwstate(struct user_vfp __user *ufp,
  */
 static int vfp_dying_cpu(unsigned int cpu)
 {
-	vfp_force_reload(cpu, current_thread_info());
+	vfp_current_hw_state[cpu] = NULL;
 	return 0;
 }
 
Signature · 1 line
2.7.4