Re: [PATCH 1/6] arm: zynq: platsmp: Fix CPU presence check

2013-10-31 Thread Sudeep KarkadaNagesha
Hi Soren, On 31/10/13 16:10, Soren Brinkmann wrote: > From: Peter Crosthwaite > > Fix an off-by-one error in the logic that checks if a CPU is present. > The ncores variable is a count of cores while the cpu variable is a > 0 based index. So if ncores == cpu, cpu is out of range. Fix this > comp

Re: [PATCH 1/6] arm: zynq: platsmp: Fix CPU presence check

2013-10-31 Thread Russell King - ARM Linux
On Thu, Oct 31, 2013 at 09:10:14AM -0700, Soren Brinkmann wrote: > From: Peter Crosthwaite > > Fix an off-by-one error in the logic that checks if a CPU is present. > The ncores variable is a count of cores while the cpu variable is a > 0 based index. So if ncores == cpu, cpu is out of range. Fix

[PATCH 1/6] arm: zynq: platsmp: Fix CPU presence check

2013-10-31 Thread Soren Brinkmann
From: Peter Crosthwaite Fix an off-by-one error in the logic that checks if a CPU is present. The ncores variable is a count of cores while the cpu variable is a 0 based index. So if ncores == cpu, cpu is out of range. Fix this comparison so non-existent CPUs are not probed. Signed-off-by: Peter