diff options
| author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2016-08-25 17:18:59 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-31 07:05:42 -0400 |
| commit | 1c9cbe118413dbb869d146c45932ba092a8ff485 (patch) | |
| tree | 9c3bcba0970f7e04ff2e386f4af7001d6892689e /drivers/hwtracing | |
| parent | 78247e25e89b135e8401767e20fa7c814a17479a (diff) | |
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/hwtracing')
| -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) | |||
| 68 | * Adjust the buffer to point to the beginning of the trace data | 68 | * Adjust the buffer to point to the beginning of the trace data |
| 69 | * and update the available trace data. | 69 | * and update the available trace data. |
| 70 | */ | 70 | */ |
| 71 | if (val & BIT(0)) { | 71 | if (val & TMC_STS_FULL) { |
| 72 | drvdata->buf = drvdata->vaddr + rwp - drvdata->paddr; | 72 | drvdata->buf = drvdata->vaddr + rwp - drvdata->paddr; |
| 73 | drvdata->len = drvdata->size; | 73 | drvdata->len = drvdata->size; |
| 74 | } else { | 74 | } else { |
