Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311112
b: refs/heads/master
c: f022d0f
h: refs/heads/master
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed Jun 20, 2012
1 parent 28263cc commit 794807f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0eff08b5d1bf4b30f1a549a58c85806748256b18
refs/heads/master: f022d0fa183c4def30ddd74f2baebd72c4254fcf
18 changes: 7 additions & 11 deletions trunk/arch/xtensa/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@

#include <asm/bootparam.h>
#include <asm/page.h>

/* References to section boundaries */

extern char _stext, _etext, _sdata, _edata, _rodata_end;
extern char __init_begin, __init_end;
#include <asm/sections.h>

/*
* mem_reserve(start, end, must_exist)
Expand Down Expand Up @@ -197,9 +193,9 @@ void __init mem_init(void)
reservedpages++;
}

codesize = (unsigned long) &_etext - (unsigned long) &_stext;
datasize = (unsigned long) &_edata - (unsigned long) &_sdata;
initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin;
codesize = (unsigned long) _etext - (unsigned long) _stext;
datasize = (unsigned long) _edata - (unsigned long) _sdata;
initsize = (unsigned long) __init_end - (unsigned long) __init_begin;

printk("Memory: %luk/%luk available (%ldk kernel code, %ldk reserved, "
"%ldk data, %ldk init %ldk highmem)\n",
Expand Down Expand Up @@ -237,7 +233,7 @@ void free_initrd_mem(unsigned long start, unsigned long end)

void free_initmem(void)
{
free_reserved_mem(&__init_begin, &__init_end);
printk("Freeing unused kernel memory: %dk freed\n",
(&__init_end - &__init_begin) >> 10);
free_reserved_mem(__init_begin, __init_end);
printk("Freeing unused kernel memory: %zuk freed\n",
(__init_end - __init_begin) >> 10);
}

0 comments on commit 794807f

Please sign in to comment.