patch-2.4.21 linux-2.4.21/arch/alpha/kernel/core_wildfire.c
Next file: linux-2.4.21/arch/alpha/kernel/entry.S
Previous file: linux-2.4.21/arch/alpha/kernel/core_tsunami.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
2003-06-13 07:51:29.000000000 -0700
- Orig file:
linux-2.4.20/arch/alpha/kernel/core_wildfire.c
- Orig date:
2001-03-02 11:12:07.000000000 -0800
diff -urN linux-2.4.20/arch/alpha/kernel/core_wildfire.c linux-2.4.21/arch/alpha/kernel/core_wildfire.c
@@ -475,6 +475,33 @@
write_dword: wildfire_write_config_dword
};
+
+/*
+ * NUMA Support
+ */
+int wildfire_pa_to_nid(unsigned long pa)
+{
+ return pa >> 36;
+}
+
+int wildfire_cpuid_to_nid(int cpuid)
+{
+ /* assume 4 CPUs per node */
+ return cpuid >> 2;
+}
+
+unsigned long wildfire_node_mem_start(int nid)
+{
+ /* 64GB per node */
+ return (unsigned long)nid * (64UL * 1024 * 1024 * 1024);
+}
+
+unsigned long wildfire_node_mem_size(int nid)
+{
+ /* 64GB per node */
+ return 64UL * 1024 * 1024 * 1024;
+}
+
#if DEBUG_DUMP_REGS
static void __init
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)