Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 074db39e authored by Anju T Sudhakar's avatar Anju T Sudhakar Committed by Michael Ellerman
Browse files

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: default avatarAnju T Sudhakar <anju@linux.vnet.ibm.com>
Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 684d9840
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;

	/*