lkml.org 
[lkml]   [2004]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch 6/23] mask v2 - Replace cpumask_t with one using mask
Matthew wrote:
> a better way to do this for UP.
> +#define cpu_online_map \
> +({ \
> + cpumask_t m = MASK_ALL1(NR_CPUS); \
> + m; \
> +})

This only helps cpu_online_map and cpu_possible_map, and only on UP's.

My controversial patch 24/23 helps all MASK_ALL based initializations,
and all mask_of_bit based initializations, for all systems up to 32 CPUs
(or 64, depending on sizeof(long)).

In particular, grep for 'cpumask_of_cpu(0)' in the kernel. You will find
many hits. This should be efficient for all 'normal' sized systems.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373
-
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: 2005-03-22 14:02    [W:0.672 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site