blob: b3f88d7867c79235372b5ad6f5cfc6edd254a083 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* 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 Anvin1965aae2008-10-22 22:26:29 -07004#ifndef _ASM_X86_MMZONE_64_H
5#define _ASM_X86_MMZONE_64_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
Matt Tolentino2b976902005-06-23 00:08:06 -07007#ifdef CONFIG_NUMA
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
Jiri Slaby59ea7462008-06-12 13:56:40 +02009#include <linux/mmdebug.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#include <asm/smp.h>
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012extern struct pglist_data *node_data[];
13
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#define NODE_DATA(nid) (node_data[nid])
15
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn)
Joe Perches60e9bfd2008-03-23 01:02:47 -070017#define node_end_pfn(nid) (NODE_DATA(nid)->node_start_pfn + \
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 NODE_DATA(nid)->node_spanned_pages)
Matt Tolentino2b976902005-06-23 00:08:06 -070019#endif
H. Peter Anvin1965aae2008-10-22 22:26:29 -070020#endif /* _ASM_X86_MMZONE_64_H */