coresight: Cleanup TMC status check
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 21 Jun 2016 16:10:53 +0000 (17:10 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 6 Sep 2016 14:24:32 +0000 (08:24 -0600)
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>
drivers/hwtracing/coresight/coresight-tmc-etr.c

index 03f36cb8b0c8fb3abb002d1e4d7646a8370ff3b1..6d7de0309e9431dacf801a35dd81e26228a23305 100644 (file)
@@ -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 {
This page took 0.026545 seconds and 5 git commands to generate.