[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090806183046.8aaa7404.sfr@canb.auug.org.au>
Date: Thu, 6 Aug 2009 18:30:46 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Andreas Herrmann <andreas.herrmann3@....com>
Cc: Ingo Molnar <mingo@...e.hu>, Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org,
Borislav Petkov <borislav.petkov@....com>,
Rusty Russell <rusty@...tcorp.com.au>
Subject: Re: [PATCH 2/5] x86: Provide CPU topology information for
multi-node processors
Hi Andrea,
On Wed, 5 Aug 2009 17:48:11 +0200 Andreas Herrmann <andreas.herrmann3@....com> 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@...b.auug.org.au
http://www.canb.auug.org.au/~sfr/
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists