Displaying 1 result from an estimated 1 matches for "need_unload".
Did you mean:
nbd_unload
2009 Jul 15
0
[PATCH] rename for_each_cpu() to for_each_possible_cpu()
...cpu) {
+ for_each_possible_cpu(cpu) {
per_cpu(xenpfm_context, cpu) = ctx[cpu];
ctx[cpu] = NULL;
}
spin_unlock(&xenpfm_context_lock);
out:
- for_each_cpu(cpu) {
+ for_each_possible_cpu(cpu) {
if (ctx[cpu] != NULL)
pfm_context_free(ctx[cpu]);
}
@@ -7358,7 +7358,7 @@ again:
need_unload = 0;
BUG_ON(in_irq());
spin_lock_irqsave(&xenpfm_context_lock, flags);
- for_each_cpu(cpu) {
+ for_each_possible_cpu(cpu) {
ctx = per_cpu(xenpfm_context, cpu);
if (ctx == NULL) {
error = -EINVAL;
@@ -7369,7 +7369,7 @@ again:
need_unload = 1;
}
if (error) {
- for_each_cpu(...