summaryrefslogtreecommitdiff
path: root/include/asm-ia64/sn/sn_cpuid.h
diff options
context:
space:
mode:
authorDean Nelson <dcn@sgi.com>2005-03-22 02:41:00 (GMT)
committerTony Luck <tony.luck@intel.com>2005-05-03 19:07:46 (GMT)
commit2e34f07ff0c944399a6456e2d91cf0ca1d9a497c (patch)
treed09796e3f37d7cd809eceb5d931f1e2171a32f5b /include/asm-ia64/sn/sn_cpuid.h
parentce0a3956b32650e229b68964c4400bbdc5ad3ca1 (diff)
downloadlinux-fsl-qoriq-2e34f07ff0c944399a6456e2d91cf0ca1d9a497c.tar.xz
[PATCH] move cnodeid_to_nasid_table out of pda
Another step in the effort to eliminate the SN pda structure. This patch moves the cnodeid_to_nasid_table field out of the pda, making it a standalone per-cpu data item, and exports it so it can be accessed by kernel modules. Signed-off-by: Dean Nelson <dcn@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64/sn/sn_cpuid.h')
-rw-r--r--include/asm-ia64/sn/sn_cpuid.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/asm-ia64/sn/sn_cpuid.h b/include/asm-ia64/sn/sn_cpuid.h
index 685435a..6b44290 100644
--- a/include/asm-ia64/sn/sn_cpuid.h
+++ b/include/asm-ia64/sn/sn_cpuid.h
@@ -4,7 +4,7 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (C) 2000-2004 Silicon Graphics, Inc. All rights reserved.
+ * Copyright (C) 2000-2005 Silicon Graphics, Inc. All rights reserved.
*/
@@ -123,11 +123,8 @@ extern int nasid_slice_to_cpuid(int, int);
/*
* cnodeid_to_nasid - convert a cnodeid to a NASID
- * Macro relies on pg_data for a node being on the node itself.
- * Just extract the NASID from the pointer.
- *
*/
-#define cnodeid_to_nasid(cnodeid) pda->cnodeid_to_nasid_table[cnodeid]
+#define cnodeid_to_nasid(cnodeid) (sn_cnodeid_to_nasid[cnodeid])
/*
* nasid_to_cnodeid - convert a NASID to a cnodeid