Re: [PATCH 1/3] cpumask: use for_each_online_cpu() in drivers/infiniband/hw/ehca/ehca_irq.c

From: Hoang-Nam Nguyen
Date: Tue Nov 25 2008 - 07:59:24 EST


> Impact: cleanup
>
> In future, accessing cpu numbers beyond nr_cpu_ids (the runtime limit)
> will be undefined. We can avoid future problems by using
> for_each_online_cpu() here.
>
> Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Acked-by: Hoang-Nam Nguyen <hnguyen@xxxxxxxxxx>

Tested with latest kernel. Thanks for this!
Nam

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/