[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] x86/cpu: Print CPU Family/Vendor infomation in both decimal and hexidecimal



commit d45fae589b8d8b6d36c211dcc46d767dda730b61
Author:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Mon Sep 12 10:07:35 2016 +0100
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Mon Sep 12 11:00:08 2016 +0100

    x86/cpu: Print CPU Family/Vendor infomation in both decimal and hexidecimal
    
    Different manuals use different representations.
    
    A new sample looks like:
    
    (XEN) CPU Vendor: Intel, Family 6 (0x6), Model 60 (0x3c), Stepping 3 (raw 
000306c3)
    
    Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Acked-by: Jan Beulich <JBeulich@xxxxxxxx>
---
 xen/arch/x86/cpu/common.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/xen/arch/x86/cpu/common.c b/xen/arch/x86/cpu/common.c
index a5cfe52..3475198 100644
--- a/xen/arch/x86/cpu/common.c
+++ b/xen/arch/x86/cpu/common.c
@@ -238,8 +238,9 @@ static void __init early_cpu_detect(void)
        c->x86_capability[cpufeat_word(X86_FEATURE_SSE3)] = ecx;
 
        printk(XENLOG_INFO
-              "CPU Vendor: %s, Family %u, Model %u, Stepping %u (raw %08x)\n",
-              this_cpu->c_vendor, c->x86, c->x86_model, c->x86_mask, eax);
+              "CPU Vendor: %s, Family %u (%#x), Model %u (%#x), Stepping %u 
(raw %08x)\n",
+              this_cpu->c_vendor, c->x86, c->x86,
+              c->x86_model, c->x86_model, c->x86_mask, eax);
 
        eax = cpuid_eax(0x80000000);
        if ((eax >> 16) == 0x8000 && eax >= 0x80000008) {
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.