lkml.org 
[lkml]   [2011]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] arch/x86/mm/numa.c: quiet sparse noise when CONFIG_X86_64 is not set
On Fri, 9 Sep 2011, H Hartley Sweeten wrote:

> diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c
> index fbeaaf4..11c60a7 100644
> --- a/arch/x86/mm/numa.c
> +++ b/arch/x86/mm/numa.c
> @@ -455,6 +455,7 @@ void __init numa_set_distance(int from, int to, int distance)
> numa_distance[from * numa_distance_cnt + to] = distance;
> }
>
> +#ifdef CONFIG_X86_64
> int __node_distance(int from, int to)
> {
> if (from >= numa_distance_cnt || to >= numa_distance_cnt)
> @@ -462,6 +463,7 @@ int __node_distance(int from, int to)
> return numa_distance[from * numa_distance_cnt + to];
> }
> EXPORT_SYMBOL(__node_distance);
> +#endif
>
> /*
> * Sanity check to catch more bad NUMA configurations (they are amazingly
>

What is 64-bit specific about this function? Shouldn't we be defining it
to be node_distance for all of x86?


\
 
 \ /
  Last update: 2011-09-10 11:41    [W:0.043 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site