diff options
author | Jeff Garzik <jgarzik@pretzel.yyz.us> | 2005-06-26 23:42:30 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-26 23:42:30 -0400 |
commit | f45727d52d1581e9ff4df9d1a12a60789ad2d1eb (patch) | |
tree | 773ae25f98542e6d382c688f7e85e8137d065614 /arch/m32r/mm | |
parent | 4c925f452cfd16c690209e96821ee094e09a2404 (diff) | |
parent | 5696c1944a33b4434a9a1ebb6383b906afd43a10 (diff) |
Merge /spare/repo/netdev-2.6/ branch 'ieee80211'
Diffstat (limited to 'arch/m32r/mm')
-rw-r--r-- | arch/m32r/mm/extable.c | 5 | ||||
-rw-r--r-- | arch/m32r/mm/init.c | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/arch/m32r/mm/extable.c b/arch/m32r/mm/extable.c index 9a97363b6524..1743f23d49a3 100644 --- a/arch/m32r/mm/extable.c +++ b/arch/m32r/mm/extable.c | |||
@@ -1,10 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/i386/mm/extable.c | 2 | * linux/arch/m32r/mm/extable.c |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #include <linux/config.h> | ||
6 | #include <linux/module.h> | 5 | #include <linux/module.h> |
7 | #include <linux/spinlock.h> | ||
8 | #include <asm/uaccess.h> | 6 | #include <asm/uaccess.h> |
9 | 7 | ||
10 | int fixup_exception(struct pt_regs *regs) | 8 | int fixup_exception(struct pt_regs *regs) |
@@ -19,4 +17,3 @@ int fixup_exception(struct pt_regs *regs) | |||
19 | 17 | ||
20 | return 0; | 18 | return 0; |
21 | } | 19 | } |
22 | |||
diff --git a/arch/m32r/mm/init.c b/arch/m32r/mm/init.c index bc423d838fb8..d9a40b1fe8ba 100644 --- a/arch/m32r/mm/init.c +++ b/arch/m32r/mm/init.c | |||
@@ -49,7 +49,7 @@ void show_mem(void) | |||
49 | printk("Free swap: %6ldkB\n",nr_swap_pages<<(PAGE_SHIFT-10)); | 49 | printk("Free swap: %6ldkB\n",nr_swap_pages<<(PAGE_SHIFT-10)); |
50 | for_each_pgdat(pgdat) { | 50 | for_each_pgdat(pgdat) { |
51 | for (i = 0; i < pgdat->node_spanned_pages; ++i) { | 51 | for (i = 0; i < pgdat->node_spanned_pages; ++i) { |
52 | page = pgdat->node_mem_map + i; | 52 | page = pgdat_page_nr(pgdat, i); |
53 | total++; | 53 | total++; |
54 | if (PageHighMem(page)) | 54 | if (PageHighMem(page)) |
55 | highmem++; | 55 | highmem++; |
@@ -152,7 +152,7 @@ int __init reservedpages_count(void) | |||
152 | reservedpages = 0; | 152 | reservedpages = 0; |
153 | for_each_online_node(nid) | 153 | for_each_online_node(nid) |
154 | for (i = 0 ; i < MAX_LOW_PFN(nid) - START_PFN(nid) ; i++) | 154 | for (i = 0 ; i < MAX_LOW_PFN(nid) - START_PFN(nid) ; i++) |
155 | if (PageReserved(NODE_DATA(nid)->node_mem_map + i)) | 155 | if (PageReserved(nid_page_nr(nid, i))) |
156 | reservedpages++; | 156 | reservedpages++; |
157 | 157 | ||
158 | return reservedpages; | 158 | return reservedpages; |