lkml.org 
[lkml]   [2010]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 5/9] x86: Replace apic->apicid_to_node() with ->numa_cpu_node()
From
On Thu, Nov 11, 2010 at 1:02 PM, Tejun Heo <tj@kernel.org> wrote:
> apic->apicid_to_node() is 32bit specific apic operation which
> determines NUMA node for a CPU.  Depending on the APIC implementation,
> it can be easier to determine NUMA node from either physical or
> logical apicid.  Currently, ->apicid_to_node() takes @logical_apicid
> and calls hard_smp_processor_id() if the physical apicid is needed.
>
> This prevents NUMA mapping from being queried from a different CPU,
> which in turn makes it impossible to initialize NUMA mapping before
> SMP bringup.
>
> This patch replaces apic->apicid_to_node() with ->numa_cpu_node()
> which takes @cpu, from which both logical and physical apicids can
> easily be determined.  While at it, drop duplicate implementations
> from bigsmp_32 and summit_32, and use the default.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>

Acked-by: Pekka Enberg <penberg@kernel.org>
--
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: 2010-11-11 12:39    [W:0.120 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site