Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* K8 NUMA support */ |
| 2 | /* Copyright 2002,2003 by Andi Kleen, SuSE Labs */ |
| 3 | /* 2.5 Version loosely based on the NUMAQ Code by Pat Gaughen. */ |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 4 | #ifndef _ASM_X86_MMZONE_64_H |
| 5 | #define _ASM_X86_MMZONE_64_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
Matt Tolentino | 2b97690 | 2005-06-23 00:08:06 -0700 | [diff] [blame] | 7 | #ifdef CONFIG_NUMA |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
Jiri Slaby | 59ea746 | 2008-06-12 13:56:40 +0200 | [diff] [blame] | 9 | #include <linux/mmdebug.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #include <asm/smp.h> |
| 11 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | extern struct pglist_data *node_data[]; |
| 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #define NODE_DATA(nid) (node_data[nid]) |
| 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn) |
Joe Perches | 60e9bfd | 2008-03-23 01:02:47 -0700 | [diff] [blame] | 17 | #define node_end_pfn(nid) (NODE_DATA(nid)->node_start_pfn + \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | NODE_DATA(nid)->node_spanned_pages) |
Matt Tolentino | 2b97690 | 2005-06-23 00:08:06 -0700 | [diff] [blame] | 19 | #endif |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 20 | #endif /* _ASM_X86_MMZONE_64_H */ |