lkml.org 
[lkml]   [2002]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [Lse-tech] [RFC] numa slab for 2.5.41-mm1
From
   From: "Luck, Tony" <tony.luck@intel.com>
Date: Tue, 8 Oct 2002 16:29:45 -0700

If ptr_to_nodeid() is made a platform dependent function, then
there are some platforms that can do this very efficiently (since
the nodeid is embedded in some of the high-order address bits), and
some for which this is complex (e.g. platforms that concatenate
memory from each node).

I suggest to do it like this, provide the portable version unless some
"HAVE_ARCH_PTR_TO_NODEID" CCP macro is defined in which case the
architecture can make the "address bits" optimization or similar.

The is how we usually handle such things.
-
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 13:29    [W:0.062 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site