diff options
Diffstat (limited to 'arch/sparc64/mm/init.c')
-rw-r--r-- | arch/sparc64/mm/init.c | 48 |
1 files changed, 1 insertions, 47 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 84898c44dd4d..4e821b3ecb03 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -392,51 +392,6 @@ void __kprobes flush_icache_range(unsigned long start, unsigned long end) | |||
392 | } | 392 | } |
393 | } | 393 | } |
394 | 394 | ||
395 | void show_mem(void) | ||
396 | { | ||
397 | unsigned long total = 0, reserved = 0; | ||
398 | unsigned long shared = 0, cached = 0; | ||
399 | pg_data_t *pgdat; | ||
400 | |||
401 | printk(KERN_INFO "Mem-info:\n"); | ||
402 | show_free_areas(); | ||
403 | printk(KERN_INFO "Free swap: %6ldkB\n", | ||
404 | nr_swap_pages << (PAGE_SHIFT-10)); | ||
405 | for_each_online_pgdat(pgdat) { | ||
406 | unsigned long i, flags; | ||
407 | |||
408 | pgdat_resize_lock(pgdat, &flags); | ||
409 | for (i = 0; i < pgdat->node_spanned_pages; i++) { | ||
410 | struct page *page = pgdat_page_nr(pgdat, i); | ||
411 | total++; | ||
412 | if (PageReserved(page)) | ||
413 | reserved++; | ||
414 | else if (PageSwapCache(page)) | ||
415 | cached++; | ||
416 | else if (page_count(page)) | ||
417 | shared += page_count(page) - 1; | ||
418 | } | ||
419 | pgdat_resize_unlock(pgdat, &flags); | ||
420 | } | ||
421 | |||
422 | printk(KERN_INFO "%lu pages of RAM\n", total); | ||
423 | printk(KERN_INFO "%lu reserved pages\n", reserved); | ||
424 | printk(KERN_INFO "%lu pages shared\n", shared); | ||
425 | printk(KERN_INFO "%lu pages swap cached\n", cached); | ||
426 | |||
427 | printk(KERN_INFO "%lu pages dirty\n", | ||
428 | global_page_state(NR_FILE_DIRTY)); | ||
429 | printk(KERN_INFO "%lu pages writeback\n", | ||
430 | global_page_state(NR_WRITEBACK)); | ||
431 | printk(KERN_INFO "%lu pages mapped\n", | ||
432 | global_page_state(NR_FILE_MAPPED)); | ||
433 | printk(KERN_INFO "%lu pages slab\n", | ||
434 | global_page_state(NR_SLAB_RECLAIMABLE) + | ||
435 | global_page_state(NR_SLAB_UNRECLAIMABLE)); | ||
436 | printk(KERN_INFO "%lu pages pagetables\n", | ||
437 | global_page_state(NR_PAGETABLE)); | ||
438 | } | ||
439 | |||
440 | void mmu_info(struct seq_file *m) | 395 | void mmu_info(struct seq_file *m) |
441 | { | 396 | { |
442 | if (tlb_type == cheetah) | 397 | if (tlb_type == cheetah) |
@@ -788,7 +743,6 @@ int numa_cpu_lookup_table[NR_CPUS]; | |||
788 | cpumask_t numa_cpumask_lookup_table[MAX_NUMNODES]; | 743 | cpumask_t numa_cpumask_lookup_table[MAX_NUMNODES]; |
789 | 744 | ||
790 | #ifdef CONFIG_NEED_MULTIPLE_NODES | 745 | #ifdef CONFIG_NEED_MULTIPLE_NODES |
791 | static bootmem_data_t plat_node_bdata[MAX_NUMNODES]; | ||
792 | 746 | ||
793 | struct mdesc_mblock { | 747 | struct mdesc_mblock { |
794 | u64 base; | 748 | u64 base; |
@@ -871,7 +825,7 @@ static void __init allocate_node_data(int nid) | |||
871 | NODE_DATA(nid) = __va(paddr); | 825 | NODE_DATA(nid) = __va(paddr); |
872 | memset(NODE_DATA(nid), 0, sizeof(struct pglist_data)); | 826 | memset(NODE_DATA(nid), 0, sizeof(struct pglist_data)); |
873 | 827 | ||
874 | NODE_DATA(nid)->bdata = &plat_node_bdata[nid]; | 828 | NODE_DATA(nid)->bdata = &bootmem_node_data[nid]; |
875 | #endif | 829 | #endif |
876 | 830 | ||
877 | p = NODE_DATA(nid); | 831 | p = NODE_DATA(nid); |