Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106246
b: refs/heads/master
c: e275e0a
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Weiner authored and Linus Torvalds committed Jul 26, 2008
1 parent 3e89651 commit 48e4adb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 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: aca532016f49eca0341ed7be5885d6c63ca69e63
refs/heads/master: e275e0a687e83add62b10e6d36b67f0964455469
31 changes: 0 additions & 31 deletions trunk/arch/frv/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,37 +61,6 @@ static unsigned long empty_bad_page;
unsigned long empty_zero_page;
EXPORT_SYMBOL(empty_zero_page);

/*****************************************************************************/
/*
*
*/
void show_mem(void)
{
unsigned long i;
int free = 0, total = 0, reserved = 0, shared = 0;

printk("\nMem-info:\n");
show_free_areas();
i = max_mapnr;
while (i-- > 0) {
struct page *page = &mem_map[i];

total++;
if (PageReserved(page))
reserved++;
else if (!page_count(page))
free++;
else
shared += page_count(page) - 1;
}

printk("%d pages of RAM\n",total);
printk("%d free pages\n",free);
printk("%d reserved pages\n",reserved);
printk("%d pages shared\n",shared);

} /* end show_mem() */

/*****************************************************************************/
/*
* paging_init() continues the virtual memory environment setup which
Expand Down

0 comments on commit 48e4adb

Please sign in to comment.