lkml.org 
[lkml]   [2008]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 13/16] x86: cpu common merge print_cpu_info
    Date
    Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
    ---
    arch/x86/kernel/cpu/common_64.c | 12 ++++++++++++
    1 files changed, 12 insertions(+), 0 deletions(-)

    diff --git a/arch/x86/kernel/cpu/common_64.c b/arch/x86/kernel/cpu/common_64.c
    index 6475548..68b06a3 100644
    --- a/arch/x86/kernel/cpu/common_64.c
    +++ b/arch/x86/kernel/cpu/common_64.c
    @@ -730,8 +730,20 @@ __setup("noclflush", setup_noclflush);

    void __cpuinit print_cpu_info(struct cpuinfo_x86 *c)
    {
    + char *vendor = NULL;
    +
    + if (c->x86_vendor < X86_VENDOR_NUM)
    + vendor = this_cpu->c_vendor;
    + else if (c->cpuid_level >= 0)
    + vendor = c->x86_vendor_id;
    +
    + if (vendor && strncmp(c->x86_model_id, vendor, strlen(vendor)))
    + printk(KERN_CONT "%s ", vendor);
    +
    if (c->x86_model_id[0])
    printk(KERN_CONT "%s", c->x86_model_id);
    + else
    + printk(KERN_CONT "%d86", c->x86);

    if (c->x86_mask || c->cpuid_level >= 0)
    printk(KERN_CONT " stepping %02x\n", c->x86_mask);
    --
    1.5.4.5


    \
     
     \ /
      Last update: 2008-09-05 05:17    [W:0.023 / U:0.252 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site