Skip to content
Commit bd239f1e authored by Paul Burton's avatar Paul Burton Committed by Ralf Baechle
Browse files

MIPS: Disable preemption during prctl(PR_SET_FP_MODE, ...)



Whilst a PR_SET_FP_MODE prctl is performed there are decisions made
based upon whether the task is executing on the current CPU. This may
change if we're preempted, so disable preemption to avoid such changes
for the lifetime of the mode switch.

Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
Fixes: 9791554b

 ("MIPS,prctl: add PR_[GS]ET_FP_MODE prctl options for MIPS")
Reviewed-by: default avatarMaciej W. Rozycki <macro@imgtec.com>
Tested-by: default avatarAurelien Jarno <aurelien@aurel32.net>
Cc: Adam Buchbinder <adam.buchbinder@gmail.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: stable <stable@vger.kernel.org> # v4.0+
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13144/
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent e70ac023
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment