One way to do this would be to do -
for (i = 0; i < NR_CPUS; i++) {
if (cpu_possible(i))
rtf_h_init(&per_cpu(rtf_lh, i));
}
However you might want to actually use the CPU notifiers to do this. See
rcu_init() in kernel/rcupdate.c.
Thanks
Dipankar
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/