Commit 15a7f8d9 authored by Jay Estabrook's avatar Jay Estabrook Committed by Richard Henderson

[PATCH] any_online_cpu for arch/alpha/kernel/smp.h

parent 195868c1
...@@ -57,6 +57,15 @@ num_online_cpus(void) ...@@ -57,6 +57,15 @@ num_online_cpus(void)
return hweight64(cpu_online_map); return hweight64(cpu_online_map);
} }
extern inline int
any_online_cpu(unsigned int mask)
{
if (mask & cpu_online_map)
return __ffs(mask & cpu_online_map);
return -1;
}
extern int smp_call_function_on_cpu(void (*func) (void *info), void *info,int retry, int wait, unsigned long cpu); extern int smp_call_function_on_cpu(void (*func) (void *info), void *info,int retry, int wait, unsigned long cpu);
#else /* CONFIG_SMP */ #else /* CONFIG_SMP */
......
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