Re: [PATCH 1/3] percpu: stop the loop when a cpu belongs to a newgroup

From: Tejun Heo
Date: Sun Oct 27 2013 - 08:30:29 EST

On Mon, Oct 21, 2013 at 04:58:11PM +0800, Wei Yang wrote:
> When a cpu belongs to a new group, there is no cpu has the same group id. This
> means it can be assigned a new group id without checking with every others.
> This patch does this optimiztion.

Does this actually matter? If so, it'd probably make a lot more sense
to start inner loop at @cpu + 1 so that it becomes O(N).


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at