diff options
| author | Jeff Garzik <jeff@garzik.org> | 2006-03-29 19:58:22 -0500 |
|---|---|---|
| committer | Jeff Garzik <jeff@garzik.org> | 2006-03-29 19:58:22 -0500 |
| commit | 79072f38909e3d9883317238887460c39ddcc4cb (patch) | |
| tree | 28369f5a844535ff836565eefd62695b0e890fa3 /arch/mips/kernel/setup.c | |
| parent | 200d5a7684cc49ef4be40e832daf3f217e70dfbb (diff) | |
| parent | 55d8ca4f8094246da6e71889a4e04bfafaa78b10 (diff) | |
Merge branch 'upstream'
Diffstat (limited to 'arch/mips/kernel/setup.c')
| -rw-r--r-- | arch/mips/kernel/setup.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 0cb3b6097e0e..dcbfd27071f0 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | #include <linux/highmem.h> | 34 | #include <linux/highmem.h> |
| 35 | #include <linux/console.h> | 35 | #include <linux/console.h> |
| 36 | #include <linux/mmzone.h> | 36 | #include <linux/mmzone.h> |
| 37 | #include <linux/pfn.h> | ||
| 37 | 38 | ||
| 38 | #include <asm/addrspace.h> | 39 | #include <asm/addrspace.h> |
| 39 | #include <asm/bootinfo.h> | 40 | #include <asm/bootinfo.h> |
| @@ -257,10 +258,6 @@ static inline int parse_rd_cmdline(unsigned long* rd_start, unsigned long* rd_en | |||
| 257 | return 0; | 258 | return 0; |
| 258 | } | 259 | } |
| 259 | 260 | ||
| 260 | #define PFN_UP(x) (((x) + PAGE_SIZE - 1) >> PAGE_SHIFT) | ||
| 261 | #define PFN_DOWN(x) ((x) >> PAGE_SHIFT) | ||
| 262 | #define PFN_PHYS(x) ((x) << PAGE_SHIFT) | ||
| 263 | |||
| 264 | #define MAXMEM HIGHMEM_START | 261 | #define MAXMEM HIGHMEM_START |
| 265 | #define MAXMEM_PFN PFN_DOWN(MAXMEM) | 262 | #define MAXMEM_PFN PFN_DOWN(MAXMEM) |
| 266 | 263 | ||
| @@ -493,10 +490,6 @@ static inline void resource_init(void) | |||
| 493 | } | 490 | } |
| 494 | } | 491 | } |
| 495 | 492 | ||
| 496 | #undef PFN_UP | ||
| 497 | #undef PFN_DOWN | ||
| 498 | #undef PFN_PHYS | ||
| 499 | |||
| 500 | #undef MAXMEM | 493 | #undef MAXMEM |
| 501 | #undef MAXMEM_PFN | 494 | #undef MAXMEM_PFN |
| 502 | 495 | ||
