Rev 16 | Rev 58 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16 | Rev 22 | ||
---|---|---|---|
Line 102... | Line 102... | ||
102 | CPU->arch.model = (info.cpuid_eax>>4)&0xf; |
102 | CPU->arch.model = (info.cpuid_eax>>4)&0xf; |
103 | CPU->arch.stepping = (info.cpuid_eax>>0)&0xf; |
103 | CPU->arch.stepping = (info.cpuid_eax>>0)&0xf; |
104 | } |
104 | } |
105 | } |
105 | } |
106 | 106 | ||
107 | void cpu_print_report(struct cpu* m) |
107 | void cpu_print_report(cpu_t* m) |
108 | { |
108 | { |
109 | printf("cpu%d: (%s family=%d model=%d stepping=%d) %dMHz\n", |
109 | printf("cpu%d: (%s family=%d model=%d stepping=%d) %dMHz\n", |
110 | m->id, vendor_str[m->arch.vendor], m->arch.family, m->arch.model, m->arch.stepping, |
110 | m->id, vendor_str[m->arch.vendor], m->arch.family, m->arch.model, m->arch.stepping, |
111 | m->frequency_mhz); |
111 | m->frequency_mhz); |
112 | } |
112 | } |