init.c (292dd876ee765c478b27c93cc51e93a558ed58bf) init.c (7835e98b2e3c66dba79cb0ff8ebb90a2fe030c29)
1/*
2 * Initialize MMU support.
3 *
4 * Copyright (C) 1998-2003 Hewlett-Packard Co
5 * David Mosberger-Tang <davidm@hpl.hp.com>
6 */
7#include <linux/config.h>
8#include <linux/kernel.h>

--- 183 unchanged lines hidden (view full) ---

192free_initmem (void)
193{
194 unsigned long addr, eaddr;
195
196 addr = (unsigned long) ia64_imva(__init_begin);
197 eaddr = (unsigned long) ia64_imva(__init_end);
198 while (addr < eaddr) {
199 ClearPageReserved(virt_to_page(addr));
1/*
2 * Initialize MMU support.
3 *
4 * Copyright (C) 1998-2003 Hewlett-Packard Co
5 * David Mosberger-Tang <davidm@hpl.hp.com>
6 */
7#include <linux/config.h>
8#include <linux/kernel.h>

--- 183 unchanged lines hidden (view full) ---

192free_initmem (void)
193{
194 unsigned long addr, eaddr;
195
196 addr = (unsigned long) ia64_imva(__init_begin);
197 eaddr = (unsigned long) ia64_imva(__init_end);
198 while (addr < eaddr) {
199 ClearPageReserved(virt_to_page(addr));
200 set_page_count(virt_to_page(addr), 1);
200 init_page_count(virt_to_page(addr));
201 free_page(addr);
202 ++totalram_pages;
203 addr += PAGE_SIZE;
204 }
205 printk(KERN_INFO "Freeing unused kernel memory: %ldkB freed\n",
206 (__init_end - __init_begin) >> 10);
207}
208

--- 38 unchanged lines hidden (view full) ---

247 if (start < end)
248 printk(KERN_INFO "Freeing initrd memory: %ldkB freed\n", (end - start) >> 10);
249
250 for (; start < end; start += PAGE_SIZE) {
251 if (!virt_addr_valid(start))
252 continue;
253 page = virt_to_page(start);
254 ClearPageReserved(page);
201 free_page(addr);
202 ++totalram_pages;
203 addr += PAGE_SIZE;
204 }
205 printk(KERN_INFO "Freeing unused kernel memory: %ldkB freed\n",
206 (__init_end - __init_begin) >> 10);
207}
208

--- 38 unchanged lines hidden (view full) ---

247 if (start < end)
248 printk(KERN_INFO "Freeing initrd memory: %ldkB freed\n", (end - start) >> 10);
249
250 for (; start < end; start += PAGE_SIZE) {
251 if (!virt_addr_valid(start))
252 continue;
253 page = virt_to_page(start);
254 ClearPageReserved(page);
255 set_page_count(page, 1);
255 init_page_count(page);
256 free_page(start);
257 ++totalram_pages;
258 }
259}
260
261/*
262 * This installs a clean page in the kernel's page table.
263 */

--- 371 unchanged lines hidden (view full) ---

635 ia32_mem_init();
636#endif
637}
638
639#ifdef CONFIG_MEMORY_HOTPLUG
640void online_page(struct page *page)
641{
642 ClearPageReserved(page);
256 free_page(start);
257 ++totalram_pages;
258 }
259}
260
261/*
262 * This installs a clean page in the kernel's page table.
263 */

--- 371 unchanged lines hidden (view full) ---

635 ia32_mem_init();
636#endif
637}
638
639#ifdef CONFIG_MEMORY_HOTPLUG
640void online_page(struct page *page)
641{
642 ClearPageReserved(page);
643 set_page_count(page, 1);
643 init_page_count(page);
644 __free_page(page);
645 totalram_pages++;
646 num_physpages++;
647}
648
649int add_memory(u64 start, u64 size)
650{
651 pg_data_t *pgdat;

--- 22 unchanged lines hidden ---
644 __free_page(page);
645 totalram_pages++;
646 num_physpages++;
647}
648
649int add_memory(u64 start, u64 size)
650{
651 pg_data_t *pgdat;

--- 22 unchanged lines hidden ---