Commit c3e9a7f3 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: any_online_cpu returns NR_CPUS on fail

parent ff4ed98f
......@@ -44,12 +44,12 @@ static inline unsigned int num_online_cpus(void)
return hweight64(cpu_online_map);
}
static inline int any_online_cpu(unsigned int mask)
static inline unsigned int any_online_cpu(unsigned int mask)
{
if (mask & cpu_online_map)
return __ffs(mask & cpu_online_map);
return -1;
return NR_CPUS;
}
#define smp_processor_id() (get_paca()->xPacaIndex)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment