Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1328f020 authored by Fabio Estevam's avatar Fabio Estevam Committed by Russell King
Browse files

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



Commit 384b38b6 ("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 e5b61baf ("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: e5b61baf ("arm: Convert VFP hotplug notifiers to state machine")
Cc: linux-stable <stable@vger.kernel.org>
Reported-by: default avatarKohji Okuno <okuno.kohji@jp.panasonic.com>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 7928b2cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}