Re: [PATCH 2/5] x86: Provide CPU topology information formulti-node processors

From: Stephen Rothwell
Date: Thu Aug 06 2009 - 04:31:09 EST


Hi Andrea,

On Wed, 5 Aug 2009 17:48:11 +0200 Andreas Herrmann <andreas.herrmann3@xxxxxxx> wrote:
>
> @@ -1061,8 +1070,10 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
> for_each_possible_cpu(i) {
> alloc_cpumask_var(&per_cpu(cpu_sibling_map, i), GFP_KERNEL);
> alloc_cpumask_var(&per_cpu(cpu_core_map, i), GFP_KERNEL);
> + alloc_cpumask_var(&per_cpu(cpu_node_map, i), GFP_KERNEL);
> alloc_cpumask_var(&cpu_data(i).llc_shared_map, GFP_KERNEL);
> cpumask_clear(per_cpu(cpu_core_map, i));
> + cpumask_clear(per_cpu(cpu_node_map, i));

I noticed this in linux-next ... you can use zalloc_cpumask_var() instead
of alloc_cpumask_var() followed by cpumask_clear().

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature