diff options
author | Suzuki K Poulose <Suzuki.Poulose@arm.com> | 2018-01-15 11:51:16 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2018-01-15 19:02:17 +0100 |
commit | a22fde8e979494f326e88ef0728367e009260d75 (patch) | |
tree | bb0d3c26f09d67eb46c1dbbb59ac969fcebd97d1 /drivers/perf/xgene_pmu.c | |
parent | arm64: capabilities: Handle duplicate entries for a capability (diff) | |
download | linux-a22fde8e979494f326e88ef0728367e009260d75.tar.xz linux-a22fde8e979494f326e88ef0728367e009260d75.zip |
perf: dsu: Use signed field for dsu_pmu->num_counters
We set dsu_pmu->num_counters to -1, when the DSU is allocated
but not initialised when none of the CPUs are active in the DSU.
However, we use an unsigned field for num_counters. Switch this
to a signed field.
Fixes: 7520fa99246d ("perf: ARM DynamIQ Shared Unit PMU support")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'drivers/perf/xgene_pmu.c')
0 files changed, 0 insertions, 0 deletions