[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Use macro to walk through online cpus
On 22/8/06 4:12 am, "Amos Waterland" <apw@xxxxxxxxxx> wrote: > There are two cases that I know of in xen/common where we waste cycles > walking through a list from zero to NR_CPUS. This patch makes them use > for_each_online_cpu instead. > > Signed-off-by: Amos Waterland <apw@xxxxxxxxxx> Better to use for_each_cpu() in case any arch supports CPU hotplug in future. The wasted cycles are unimportant since these loops run only once, at boot time. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |