summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf
diff options
context:
space:
mode:
authorAnju T Sudhakar2017-10-31 10:52:00 +0100
committerMichael Ellerman2018-01-19 13:05:01 +0100
commit074db39e00bb0d35cda7de9a4bae3a9b6da557ad (patch)
treec4e7164a2e3ca0ac46171476cfaae0564299f735 /arch/powerpc/perf
parentpowerpc/powernv: Add debugfs interface for imc-mode and imc-command (diff)
downloadkernel-qcow2-linux-074db39e00bb0d35cda7de9a4bae3a9b6da557ad.tar.gz
kernel-qcow2-linux-074db39e00bb0d35cda7de9a4bae3a9b6da557ad.tar.xz
kernel-qcow2-linux-074db39e00bb0d35cda7de9a4bae3a9b6da557ad.zip
powerpc/perf: Change the data type for the variable 'ncpu' in IMC code
Change the data type for the variable 'ncpu' in ppc_core_imc_cpu_offline(), since cpumask_any_but() returns an 'int' value. Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf')
-rw-r--r--arch/powerpc/perf/imc-pmu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/perf/imc-pmu.c
index 9ec7e87056e5..671aa20d8dd8 100644
--- a/arch/powerpc/perf/imc-pmu.c
+++ b/arch/powerpc/perf/imc-pmu.c
@@ -611,7 +611,8 @@ static int ppc_core_imc_cpu_online(unsigned int cpu)
static int ppc_core_imc_cpu_offline(unsigned int cpu)
{
- unsigned int ncpu, core_id;
+ unsigned int core_id;
+ int ncpu;
struct imc_pmu_ref *ref;
/*