]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
coresight: Cleanup TMC status check
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 25 Aug 2016 21:18:59 +0000 (15:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 11:05:42 +0000 (13:05 +0200)
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>
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 {