init.c (f78f10436806660f39440a729acbaf03e3a01023) init.c (7835e98b2e3c66dba79cb0ff8ebb90a2fe030c29)
1/*
2 * linux/arch/arm/mm/init.c
3 *
4 * Copyright (C) 1995-2005 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

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

14#include <linux/swap.h>
15#include <linux/init.h>
16#include <linux/bootmem.h>
17#include <linux/mman.h>
18#include <linux/nodemask.h>
19#include <linux/initrd.h>
20
21#include <asm/mach-types.h>
1/*
2 * linux/arch/arm/mm/init.c
3 *
4 * Copyright (C) 1995-2005 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

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

14#include <linux/swap.h>
15#include <linux/init.h>
16#include <linux/bootmem.h>
17#include <linux/mman.h>
18#include <linux/nodemask.h>
19#include <linux/initrd.h>
20
21#include <asm/mach-types.h>
22#include <asm/hardware.h>
22#include <asm/setup.h>
23#include <asm/tlb.h>
24
25#include <asm/mach/arch.h>
26#include <asm/mach/map.h>
27
28#define TABLE_SIZE (2 * PTRS_PER_PTE * sizeof(pte_t))
29

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

525
526static inline void free_area(unsigned long addr, unsigned long end, char *s)
527{
528 unsigned int size = (end - addr) >> 10;
529
530 for (; addr < end; addr += PAGE_SIZE) {
531 struct page *page = virt_to_page(addr);
532 ClearPageReserved(page);
23#include <asm/setup.h>
24#include <asm/tlb.h>
25
26#include <asm/mach/arch.h>
27#include <asm/mach/map.h>
28
29#define TABLE_SIZE (2 * PTRS_PER_PTE * sizeof(pte_t))
30

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

526
527static inline void free_area(unsigned long addr, unsigned long end, char *s)
528{
529 unsigned int size = (end - addr) >> 10;
530
531 for (; addr < end; addr += PAGE_SIZE) {
532 struct page *page = virt_to_page(addr);
533 ClearPageReserved(page);
533 set_page_count(page, 1);
534 init_page_count(page);
534 free_page(addr);
535 totalram_pages++;
536 }
537
538 if (size && s)
539 printk(KERN_INFO "Freeing %s memory: %dK\n", s, size);
540}
541

--- 149 unchanged lines hidden ---
535 free_page(addr);
536 totalram_pages++;
537 }
538
539 if (size && s)
540 printk(KERN_INFO "Freeing %s memory: %dK\n", s, size);
541}
542

--- 149 unchanged lines hidden ---