Messages in this thread | | | Date | Tue, 08 Oct 2002 17:50:04 -0700 (PDT) | Subject | Re: [Lse-tech] [RFC] numa slab for 2.5.41-mm1 | From | "David S. Miller" <> |
| |
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/
| |