]> www.infradead.org Git - users/jedix/linux-maple.git/commit
coresight: trbe: Remove redundant disable call
authorJames Clark <james.clark@linaro.org>
Mon, 6 Jan 2025 14:24:39 +0000 (14:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 12 Jan 2025 12:50:11 +0000 (12:50 +0000)
commita2b579c41fe9c295804abd167751f9fdc73c7006
tree8c312bc96a9af54115b25938baf5db159bbe90c3
parentc382ee674c8b5005798606267d660cf995218b18
coresight: trbe: Remove redundant disable call

trbe_drain_and_disable_local() just clears TRBLIMITR and drains.
TRBLIMITR is already cleared on the next line after this call, so
replace it with only drain. This is so we can make a kvm call that has a
preempt enabled warning from set_trbe_disabled() in the next commit,
where trbe_reset_local() is called from a preemptible hotplug path.

Signed-off-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250106142446.628923-5-james.clark@linaro.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
drivers/hwtracing/coresight/coresight-trbe.c