lkml.org 
[lkml]   [2012]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] lib/cpumask.c: Optimize __any_online_cpu() calculation
From
Date
Le mercredi 15 février 2012 à 18:05 +0530, Srivatsa S. Bhat a écrit :
> __any_online_cpu() uses a for loop at the moment.
> Instead, use cpumask_* operations to speed it up.
>
> Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
> ---
> Actually, the patch posted at https://lkml.org/lkml/2012/2/15/101 removed
> the last user of any_online_cpu() (and hence __any_online_cpu()).
> However, since this is an exported symbol, I refrained from removing this
> function altogether.

Just remove the export/function and eventually leave the helper ?

#define any_online_cpu(mask) cpumask_any_and(mask, cpu_online_mask)


--
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/

\
 
 \ /
  Last update: 2012-02-15 13:59    [from the cache]
©2003-2011 Jasper Spaans