diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2016-08-25 15:18:59 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-31 13:05:42 +0200 |
commit | 1c9cbe118413dbb869d146c45932ba092a8ff485 (patch) | |
tree | 9c3bcba0970f7e04ff2e386f4af7001d6892689e /drivers | |
parent | 78247e25e89b135e8401767e20fa7c814a17479a (diff) | |
download | linux-1c9cbe118413dbb869d146c45932ba092a8ff485.tar.gz linux-1c9cbe118413dbb869d146c45932ba092a8ff485.tar.bz2 linux-1c9cbe118413dbb869d146c45932ba092a8ff485.zip |
coresight: Cleanup TMC status check
Use the defined symbol rather than hardcoding the value to
check whether the TMC buffer is full.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwtracing/coresight/coresight-tmc-etr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-tmc-etr.c b/drivers/hwtracing/coresight/coresight-tmc-etr.c index 03f36cb8b0c8..6d7de0309e94 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etr.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etr.c @@ -68,7 +68,7 @@ static void tmc_etr_dump_hw(struct tmc_drvdata *drvdata) * Adjust the buffer to point to the beginning of the trace data * and update the available trace data. */ - if (val & BIT(0)) { + if (val & TMC_STS_FULL) { drvdata->buf = drvdata->vaddr + rwp - drvdata->paddr; drvdata->len = drvdata->size; } else { |