diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-04 00:06:41 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-04 00:21:49 -0400 |
commit | e3239ff92a17976ac5d26fa0fe40ef3a9daf2523 (patch) | |
tree | da3c493196811ccae1b79c3c94234f5d481c8221 /arch | |
parent | f1c2c19c498e27de48bf0dc4221e6e31b1823169 (diff) |
memblock: Rename memblock_region to memblock_type and memblock_property to memblock_region
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mm/init.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/fb.c | 2 | ||||
-rw-r--r-- | arch/microblaze/mm/init.c | 4 | ||||
-rw-r--r-- | arch/powerpc/mm/hash_utils_64.c | 2 | ||||
-rw-r--r-- | arch/powerpc/mm/mem.c | 26 | ||||
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/wii.c | 2 | ||||
-rw-r--r-- | arch/sparc/mm/init_64.c | 6 |
7 files changed, 22 insertions, 22 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 7185b00650fe..d1496e65dc2d 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -237,7 +237,7 @@ static void __init arm_bootmem_free(struct meminfo *mi, unsigned long min, | |||
237 | #ifndef CONFIG_SPARSEMEM | 237 | #ifndef CONFIG_SPARSEMEM |
238 | int pfn_valid(unsigned long pfn) | 238 | int pfn_valid(unsigned long pfn) |
239 | { | 239 | { |
240 | struct memblock_region *mem = &memblock.memory; | 240 | struct memblock_type *mem = &memblock.memory; |
241 | unsigned int left = 0, right = mem->cnt; | 241 | unsigned int left = 0, right = mem->cnt; |
242 | 242 | ||
243 | do { | 243 | do { |
diff --git a/arch/arm/plat-omap/fb.c b/arch/arm/plat-omap/fb.c index 0054b9501a53..05bf22827404 100644 --- a/arch/arm/plat-omap/fb.c +++ b/arch/arm/plat-omap/fb.c | |||
@@ -173,7 +173,7 @@ static int check_fbmem_region(int region_idx, struct omapfb_mem_region *rg, | |||
173 | 173 | ||
174 | static int valid_sdram(unsigned long addr, unsigned long size) | 174 | static int valid_sdram(unsigned long addr, unsigned long size) |
175 | { | 175 | { |
176 | struct memblock_property res; | 176 | struct memblock_region res; |
177 | 177 | ||
178 | res.base = addr; | 178 | res.base = addr; |
179 | res.size = size; | 179 | res.size = size; |
diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index db5934989926..afd6494fbbc6 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c | |||
@@ -77,8 +77,8 @@ void __init setup_memory(void) | |||
77 | 77 | ||
78 | /* Find main memory where is the kernel */ | 78 | /* Find main memory where is the kernel */ |
79 | for (i = 0; i < memblock.memory.cnt; i++) { | 79 | for (i = 0; i < memblock.memory.cnt; i++) { |
80 | memory_start = (u32) memblock.memory.region[i].base; | 80 | memory_start = (u32) memblock.memory.regions[i].base; |
81 | memory_end = (u32) memblock.memory.region[i].base | 81 | memory_end = (u32) memblock.memory.regions[i].base |
82 | + (u32) memblock.memory.region[i].size; | 82 | + (u32) memblock.memory.region[i].size; |
83 | if ((memory_start <= (u32)_text) && | 83 | if ((memory_start <= (u32)_text) && |
84 | ((u32)_text <= memory_end)) { | 84 | ((u32)_text <= memory_end)) { |
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index 09dffe6efa46..b1a3784744db 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c | |||
@@ -660,7 +660,7 @@ static void __init htab_initialize(void) | |||
660 | 660 | ||
661 | /* create bolted the linear mapping in the hash table */ | 661 | /* create bolted the linear mapping in the hash table */ |
662 | for (i=0; i < memblock.memory.cnt; i++) { | 662 | for (i=0; i < memblock.memory.cnt; i++) { |
663 | base = (unsigned long)__va(memblock.memory.region[i].base); | 663 | base = (unsigned long)__va(memblock.memory.regions[i].base); |
664 | size = memblock.memory.region[i].size; | 664 | size = memblock.memory.region[i].size; |
665 | 665 | ||
666 | DBG("creating mapping for region: %lx..%lx (prot: %lx)\n", | 666 | DBG("creating mapping for region: %lx..%lx (prot: %lx)\n", |
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 1a84a8d00005..a33f5c186fb7 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c | |||
@@ -86,10 +86,10 @@ int page_is_ram(unsigned long pfn) | |||
86 | for (i=0; i < memblock.memory.cnt; i++) { | 86 | for (i=0; i < memblock.memory.cnt; i++) { |
87 | unsigned long base; | 87 | unsigned long base; |
88 | 88 | ||
89 | base = memblock.memory.region[i].base; | 89 | base = memblock.memory.regions[i].base; |
90 | 90 | ||
91 | if ((paddr >= base) && | 91 | if ((paddr >= base) && |
92 | (paddr < (base + memblock.memory.region[i].size))) { | 92 | (paddr < (base + memblock.memory.regions[i].size))) { |
93 | return 1; | 93 | return 1; |
94 | } | 94 | } |
95 | } | 95 | } |
@@ -149,7 +149,7 @@ int | |||
149 | walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages, | 149 | walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages, |
150 | void *arg, int (*func)(unsigned long, unsigned long, void *)) | 150 | void *arg, int (*func)(unsigned long, unsigned long, void *)) |
151 | { | 151 | { |
152 | struct memblock_property res; | 152 | struct memblock_region res; |
153 | unsigned long pfn, len; | 153 | unsigned long pfn, len; |
154 | u64 end; | 154 | u64 end; |
155 | int ret = -1; | 155 | int ret = -1; |
@@ -206,7 +206,7 @@ void __init do_init_bootmem(void) | |||
206 | /* Add active regions with valid PFNs */ | 206 | /* Add active regions with valid PFNs */ |
207 | for (i = 0; i < memblock.memory.cnt; i++) { | 207 | for (i = 0; i < memblock.memory.cnt; i++) { |
208 | unsigned long start_pfn, end_pfn; | 208 | unsigned long start_pfn, end_pfn; |
209 | start_pfn = memblock.memory.region[i].base >> PAGE_SHIFT; | 209 | start_pfn = memblock.memory.regions[i].base >> PAGE_SHIFT; |
210 | end_pfn = start_pfn + memblock_size_pages(&memblock.memory, i); | 210 | end_pfn = start_pfn + memblock_size_pages(&memblock.memory, i); |
211 | add_active_range(0, start_pfn, end_pfn); | 211 | add_active_range(0, start_pfn, end_pfn); |
212 | } | 212 | } |
@@ -219,16 +219,16 @@ void __init do_init_bootmem(void) | |||
219 | 219 | ||
220 | /* reserve the sections we're already using */ | 220 | /* reserve the sections we're already using */ |
221 | for (i = 0; i < memblock.reserved.cnt; i++) { | 221 | for (i = 0; i < memblock.reserved.cnt; i++) { |
222 | unsigned long addr = memblock.reserved.region[i].base + | 222 | unsigned long addr = memblock.reserved.regions[i].base + |
223 | memblock_size_bytes(&memblock.reserved, i) - 1; | 223 | memblock_size_bytes(&memblock.reserved, i) - 1; |
224 | if (addr < lowmem_end_addr) | 224 | if (addr < lowmem_end_addr) |
225 | reserve_bootmem(memblock.reserved.region[i].base, | 225 | reserve_bootmem(memblock.reserved.regions[i].base, |
226 | memblock_size_bytes(&memblock.reserved, i), | 226 | memblock_size_bytes(&memblock.reserved, i), |
227 | BOOTMEM_DEFAULT); | 227 | BOOTMEM_DEFAULT); |
228 | else if (memblock.reserved.region[i].base < lowmem_end_addr) { | 228 | else if (memblock.reserved.regions[i].base < lowmem_end_addr) { |
229 | unsigned long adjusted_size = lowmem_end_addr - | 229 | unsigned long adjusted_size = lowmem_end_addr - |
230 | memblock.reserved.region[i].base; | 230 | memblock.reserved.regions[i].base; |
231 | reserve_bootmem(memblock.reserved.region[i].base, | 231 | reserve_bootmem(memblock.reserved.regions[i].base, |
232 | adjusted_size, BOOTMEM_DEFAULT); | 232 | adjusted_size, BOOTMEM_DEFAULT); |
233 | } | 233 | } |
234 | } | 234 | } |
@@ -237,7 +237,7 @@ void __init do_init_bootmem(void) | |||
237 | 237 | ||
238 | /* reserve the sections we're already using */ | 238 | /* reserve the sections we're already using */ |
239 | for (i = 0; i < memblock.reserved.cnt; i++) | 239 | for (i = 0; i < memblock.reserved.cnt; i++) |
240 | reserve_bootmem(memblock.reserved.region[i].base, | 240 | reserve_bootmem(memblock.reserved.regions[i].base, |
241 | memblock_size_bytes(&memblock.reserved, i), | 241 | memblock_size_bytes(&memblock.reserved, i), |
242 | BOOTMEM_DEFAULT); | 242 | BOOTMEM_DEFAULT); |
243 | 243 | ||
@@ -257,10 +257,10 @@ static int __init mark_nonram_nosave(void) | |||
257 | 257 | ||
258 | for (i = 0; i < memblock.memory.cnt - 1; i++) { | 258 | for (i = 0; i < memblock.memory.cnt - 1; i++) { |
259 | memblock_region_max_pfn = | 259 | memblock_region_max_pfn = |
260 | (memblock.memory.region[i].base >> PAGE_SHIFT) + | 260 | (memblock.memory.regions[i].base >> PAGE_SHIFT) + |
261 | (memblock.memory.region[i].size >> PAGE_SHIFT); | 261 | (memblock.memory.regions[i].size >> PAGE_SHIFT); |
262 | memblock_next_region_start_pfn = | 262 | memblock_next_region_start_pfn = |
263 | memblock.memory.region[i+1].base >> PAGE_SHIFT; | 263 | memblock.memory.regions[i+1].base >> PAGE_SHIFT; |
264 | 264 | ||
265 | if (memblock_region_max_pfn < memblock_next_region_start_pfn) | 265 | if (memblock_region_max_pfn < memblock_next_region_start_pfn) |
266 | register_nosave_region(memblock_region_max_pfn, | 266 | register_nosave_region(memblock_region_max_pfn, |
diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c index 5cdcc7c8d973..8450c29e9b2f 100644 --- a/arch/powerpc/platforms/embedded6xx/wii.c +++ b/arch/powerpc/platforms/embedded6xx/wii.c | |||
@@ -65,7 +65,7 @@ static int __init page_aligned(unsigned long x) | |||
65 | 65 | ||
66 | void __init wii_memory_fixups(void) | 66 | void __init wii_memory_fixups(void) |
67 | { | 67 | { |
68 | struct memblock_property *p = memblock.memory.region; | 68 | struct memblock_region *p = memblock.memory.region; |
69 | 69 | ||
70 | /* | 70 | /* |
71 | * This is part of a workaround to allow the use of two | 71 | * This is part of a workaround to allow the use of two |
diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c index f0434513df15..16d8bee889ba 100644 --- a/arch/sparc/mm/init_64.c +++ b/arch/sparc/mm/init_64.c | |||
@@ -978,7 +978,7 @@ static void __init add_node_ranges(void) | |||
978 | unsigned long size = memblock_size_bytes(&memblock.memory, i); | 978 | unsigned long size = memblock_size_bytes(&memblock.memory, i); |
979 | unsigned long start, end; | 979 | unsigned long start, end; |
980 | 980 | ||
981 | start = memblock.memory.region[i].base; | 981 | start = memblock.memory.regions[i].base; |
982 | end = start + size; | 982 | end = start + size; |
983 | while (start < end) { | 983 | while (start < end) { |
984 | unsigned long this_end; | 984 | unsigned long this_end; |
@@ -1299,7 +1299,7 @@ static void __init bootmem_init_nonnuma(void) | |||
1299 | if (!size) | 1299 | if (!size) |
1300 | continue; | 1300 | continue; |
1301 | 1301 | ||
1302 | start_pfn = memblock.memory.region[i].base >> PAGE_SHIFT; | 1302 | start_pfn = memblock.memory.regions[i].base >> PAGE_SHIFT; |
1303 | end_pfn = start_pfn + memblock_size_pages(&memblock.memory, i); | 1303 | end_pfn = start_pfn + memblock_size_pages(&memblock.memory, i); |
1304 | add_active_range(0, start_pfn, end_pfn); | 1304 | add_active_range(0, start_pfn, end_pfn); |
1305 | } | 1305 | } |
@@ -1339,7 +1339,7 @@ static void __init trim_reserved_in_node(int nid) | |||
1339 | numadbg(" trim_reserved_in_node(%d)\n", nid); | 1339 | numadbg(" trim_reserved_in_node(%d)\n", nid); |
1340 | 1340 | ||
1341 | for (i = 0; i < memblock.reserved.cnt; i++) { | 1341 | for (i = 0; i < memblock.reserved.cnt; i++) { |
1342 | unsigned long start = memblock.reserved.region[i].base; | 1342 | unsigned long start = memblock.reserved.regions[i].base; |
1343 | unsigned long size = memblock_size_bytes(&memblock.reserved, i); | 1343 | unsigned long size = memblock_size_bytes(&memblock.reserved, i); |
1344 | unsigned long end = start + size; | 1344 | unsigned long end = start + size; |
1345 | 1345 | ||