[PATCH -mm] fix wrong /proc/cpuinfo output - Kernel

This is a discussion on [PATCH -mm] fix wrong /proc/cpuinfo output - Kernel ; This patch fixes the problem introduced by: http://kernel.org/pub/linux/kernel/p...pu-array.patch The problem is that every processor line in /proc/cpuinfo displays zero on x86_64. $ grep processor /proc/cpuinfo processor : 0 processor : 0 Because early_identify_cpu() overwrites c->cpu_index for every cpuinfo. This patch ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH -mm] fix wrong /proc/cpuinfo output

  1. [PATCH -mm] fix wrong /proc/cpuinfo output

    This patch fixes the problem introduced by:
    http://kernel.org/pub/linux/kernel/p...pu-array.patch

    The problem is that every processor line in /proc/cpuinfo displays zero
    on x86_64.

    $ grep processor /proc/cpuinfo
    processor : 0
    processor : 0

    Because early_identify_cpu() overwrites c->cpu_index for every cpuinfo.
    This patch removes that unnecessary initialization for c->cpu_index.

    Signed-off-by: Akinobu Mita

    Index: 2.6-mm/arch/x86_64/kernel/setup.c
    ================================================== =================
    --- 2.6-mm.orig/arch/x86_64/kernel/setup.c
    +++ 2.6-mm/arch/x86_64/kernel/setup.c
    @@ -967,7 +967,6 @@ void __cpuinit early_identify_cpu(struct

    #ifdef CONFIG_SMP
    c->phys_proc_id = (cpuid_ebx(1) >> 24) & 0xff;
    - c->cpu_index = 0;
    #endif
    /* AMD-defined flags: level 0x80000001 */
    xlvl = cpuid_eax(0x80000000);
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. Re: [PATCH -mm] fix wrong /proc/cpuinfo output

    On Tue, Oct 09, 2007 at 07:43:21PM +0900, Akinobu Mita wrote:
    > This patch fixes the problem introduced by:
    > http://kernel.org/pub/linux/kernel/p...pu-array.patch
    >


    Link is dead, same patch in lkml.org:

    http://lkml.org/lkml/2007/9/24/394

    --
    Ahmed S. Darwish
    HomePage: http://darwish.07.googlepages.com
    Blog: http://darwish-07.blogspot.com
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread