mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
coresight: etm3x: set progbit to stop trace collection
There is no need to use the event enable's "always false" event to stop trace collection. For that purpose setting the programming bit (ETMCR:10) is enough. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
22fd532eaa
commit
47cd066cd0
1 changed files with 0 additions and 3 deletions
|
@ -398,9 +398,6 @@ static void etm_disable_hw(void *info)
|
||||||
CS_UNLOCK(drvdata->base);
|
CS_UNLOCK(drvdata->base);
|
||||||
etm_set_prog(drvdata);
|
etm_set_prog(drvdata);
|
||||||
|
|
||||||
/* Program trace enable to low by using always false event */
|
|
||||||
etm_writel(drvdata, ETM_HARD_WIRE_RES_A | ETM_EVENT_NOT_A, ETMTEEVR);
|
|
||||||
|
|
||||||
/* Read back sequencer and counters for post trace analysis */
|
/* Read back sequencer and counters for post trace analysis */
|
||||||
config->seq_curr_state = (etm_readl(drvdata, ETMSQR) & ETM_SQR_MASK);
|
config->seq_curr_state = (etm_readl(drvdata, ETMSQR) & ETM_SQR_MASK);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue