lkml.org 
[lkml]   [2008]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC 08/22] h8300: Use generic show_mem()
    Date

    Signed-off-by: Johannes Weiner <hannes@saeurebad.de>

    diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig
    index 70e63fc..085dc6e 100644
    --- a/arch/h8300/Kconfig
    +++ b/arch/h8300/Kconfig
    @@ -22,9 +22,6 @@ config ZONE_DMA
    bool
    default y

    -config HAVE_ARCH_SHOW_MEM
    - def_bool y
    -
    config FPU
    bool
    default n
    diff --git a/arch/h8300/mm/init.c b/arch/h8300/mm/init.c
    index e4f4199..82cc54e 100644
    --- a/arch/h8300/mm/init.c
    +++ b/arch/h8300/mm/init.c
    @@ -64,33 +64,6 @@ unsigned long empty_zero_page;

    extern unsigned long rom_length;

    -void show_mem(void)
    -{
    - unsigned long i;
    - int free = 0, total = 0, reserved = 0, shared = 0;
    - int cached = 0;
    -
    - printk("\nMem-info:\n");
    - show_free_areas();
    - i = max_mapnr;
    - while (i-- > 0) {
    - total++;
    - if (PageReserved(mem_map+i))
    - reserved++;
    - else if (PageSwapCache(mem_map+i))
    - cached++;
    - else if (!page_count(mem_map+i))
    - free++;
    - else
    - shared += page_count(mem_map+i) - 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);
    - printk("%d pages swap cached\n",cached);
    -}
    -
    extern unsigned long memory_start;
    extern unsigned long memory_end;

    @@ -228,4 +201,3 @@ free_initmem()
    (int)(addr - PAGE_SIZE));
    #endif
    }
    -
    --
    1.5.2.2


    \
     
     \ /
      Last update: 2008-04-02 23:47    [W:0.050 / U:0.436 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site