[lkml]   [2006]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject2.6.18-rc3-mm2 early_param mem= fix
    I was impressed by how fast 2.6.18-rc3-mm2 is under memory pressure,
    until I noticed that my "mem=512M" boot option was doing nothing. The
    two fixes below got it working, but I wonder how many other early_param
    "option=" args are wrong (e.g. "memmap=" in the same file): x86_64
    shows many such, i386 shows only one, I've not followed it up further.


    --- 2.6.18-rc3-mm2/arch/x86_64/kernel/e820.c 2006-08-06 12:25:35.000000000 +0100
    +++ linux/arch/x86_64/kernel/e820.c 2006-08-06 18:05:33.000000000 +0100
    @@ -646,11 +646,11 @@ static int __init parse_memopt(char *p)
    if (!p)
    return -EINVAL;
    - end_user_pfn = memparse(p, NULL);
    + end_user_pfn = memparse(p, &p);
    end_user_pfn >>= PAGE_SHIFT;
    return 0;
    -early_param("mem=", parse_memopt);
    +early_param("mem", parse_memopt);

    static int userdef __initdata;

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at
     \ /
      Last update: 2006-08-06 19:27    [W:0.022 / U:69.200 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site