]> git.baikalelectronics.ru Git - kernel.git/commit
x86: show cpuinfo only for online CPUs
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Thu, 1 Nov 2007 18:32:17 +0000 (19:32 +0100)
committerThomas Gleixner <tglx@apollo.(none)>
Sat, 17 Nov 2007 15:27:00 +0000 (16:27 +0100)
commit1388018b7e4864cee96b1022c855f90ddcca0c31
tree70fc7c4a75760d8b7c8d9e2c53cf5f4484017a4c
parent20e3a7405c3de11d9f399a930a72ba0dd699f358
x86: show cpuinfo only for online CPUs

Fix regressions introduced with fb0eb1dbee7d79b9d79bac976c0625ce69ac16f2.

It can happen that cpuinfo is displayed for CPUs that are not online or
even worse for CPUs not present at all. As an example, following was
shown for a "second" CPU of a single core K8 variant:

    processor       : 0
    vendor_id       : unknown
    cpu family      : 0
    model           : 0
    model name      : unknown
    stepping        : 0
    cache size      : 0 KB
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 0
    wp              : yes
    flags           :
    bogomips        : 0.00
    clflush size    : 0
    cache_alignment : 0
    address sizes   : 0 bits physical, 0 bits virtual
    power management:

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/proc.c
arch/x86/kernel/setup_64.c