summaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2011-07-13 17:02:12 +0900
committerPaul Mundt <lethal@linux-sh.org>2011-07-13 17:02:12 +0900
commit4af358f81881e1d083a916c9269b5ac0936e180d (patch)
treec0533d3268daccb6f06f1180aa1ae8f1aac17d36 /include/linux/mmzone.h
parent7653aaab775d4c205a7dce52850c8e3d4f31d4ea (diff)
parentb63d10130e68aa6480cc1b2483d7c5ce57a05481 (diff)
downloadlinux-4af358f81881e1d083a916c9269b5ac0936e180d.tar.gz
linux-4af358f81881e1d083a916c9269b5ac0936e180d.tar.bz2
linux-4af358f81881e1d083a916c9269b5ac0936e180d.zip
Merge branch 'fbdev/stable-updates'
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index c928dac6cad0..9f7c3ebcbbad 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -647,6 +647,13 @@ typedef struct pglist_data {
#endif
#define nid_page_nr(nid, pagenr) pgdat_page_nr(NODE_DATA(nid),(pagenr))
+#define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn)
+
+#define node_end_pfn(nid) ({\
+ pg_data_t *__pgdat = NODE_DATA(nid);\
+ __pgdat->node_start_pfn + __pgdat->node_spanned_pages;\
+})
+
#include <linux/memory_hotplug.h>
extern struct mutex zonelists_mutex;