Skip to content

Commit

Permalink
[PATCH] m68knommu: remove use of rom_length
Browse files Browse the repository at this point in the history
Remove use of rom_length. It serves not real purpose, and when we move
to new stye RAM configuration it will not be needed.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Jun 26, 2006
1 parent 36a248f commit 2082b47
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/m68knommu/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ static unsigned long empty_bad_page;

unsigned long empty_zero_page;

extern unsigned long rom_length;

void show_mem(void)
{
unsigned long i;
Expand Down Expand Up @@ -178,11 +176,9 @@ void mem_init(void)
initk = (&__init_begin - &__init_end) >> 10;

tmp = nr_free_pages() << PAGE_SHIFT;
printk(KERN_INFO "Memory available: %luk/%luk RAM, %luk/%luk ROM (%dk kernel code, %dk data)\n",
printk(KERN_INFO "Memory available: %luk/%luk RAM, (%dk kernel code, %dk data)\n",
tmp >> 10,
len >> 10,
(rom_length > 0) ? ((rom_length >> 10) - codek) : 0,
rom_length >> 10,
codek,
datak
);
Expand Down

0 comments on commit 2082b47

Please sign in to comment.