]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: Disable the path only when the source is disabled
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 5 Jun 2017 20:15:02 +0000 (14:15 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 09:45:23 +0000 (11:45 +0200)
commit4371fb14b5156e147a1d48bcaa587b8ecd5eab21
tree05fdc622e212f99d3f25eafed313667511861005
parent77de9c685d74e9647cc31bbdfbac538c3d693f3c
coresight: Disable the path only when the source is disabled

With a coresight tracing session, the components along the path
from the source to sink are disabled after the source is disabled.
However, if the source was not actually disabled due to active
users, we should not disable the components in the path.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight.c