diff options
author | Mark Rutland <mark.rutland@arm.com> | 2014-08-15 12:11:49 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-09-13 23:41:47 +0100 |
commit | 8630bac3571552b08021b0924ccc21439d12cb94 (patch) | |
tree | e65ddd1cec08522dec73c6a1af8cd4f8829da8b4 /lib/crc-itu-t.c | |
parent | b23ea023ee26e97ba6ffdc3c9d54448a77f1b894 (diff) | |
download | linux-stable-8630bac3571552b08021b0924ccc21439d12cb94.tar.gz linux-stable-8630bac3571552b08021b0924ccc21439d12cb94.tar.bz2 linux-stable-8630bac3571552b08021b0924ccc21439d12cb94.zip |
ARM: 8128/1: abort: don't clear the exclusive monitors
commit 85868313177700d20644263a782351262d2aff84 upstream.
The ARMv6 and ARMv7 early abort handlers clear the exclusive monitors
upon entry to the kernel, but this is redundant:
- We clear the monitors on every exception return since commit
200b812d0084 ("Clear the exclusive monitor when returning from an
exception"), so this is not necessary to ensure the monitors are
cleared before returning from a fault handler.
- Any dummy STREX will target a temporary scratch area in memory, and
may succeed or fail without corrupting useful data. Its status value
will not be used.
- Any other STREX in the kernel must be preceded by an LDREX, which
will initialise the monitors consistently and will not depend on the
earlier state of the monitors.
Therefore we have no reason to care about the initial state of the
exclusive monitors when a data abort is taken, and clearing the monitors
prior to exception return (as we already do) is sufficient.
This patch removes the redundant clearing of the exclusive monitors from
the early abort handlers.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'lib/crc-itu-t.c')
0 files changed, 0 insertions, 0 deletions