Commit 20861fb4 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: Fix any_online_cpu for > 32 cpus, mask must be unsigned long

parent b9d6ea3c
......@@ -44,7 +44,7 @@ static inline unsigned int num_online_cpus(void)
return hweight64(cpu_online_map);
}
static inline unsigned int any_online_cpu(unsigned int mask)
static inline unsigned int any_online_cpu(unsigned long mask)
{
if (mask & cpu_online_map)
return __ffs(mask & cpu_online_map);
......
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