mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Fix CPU ID in /proc/cpuinfo.
PR: kern/56451 Submitted by: arundel@ MFC after: 3 weeks
This commit is contained in:
parent
ecfd40f14d
commit
199b5a28d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214982
@ -276,11 +276,11 @@ linprocfs_docpuinfo(PFS_FILL_ARGS)
|
||||
sbuf_printf(sb,
|
||||
"processor\t: %d\n"
|
||||
"vendor_id\t: %.20s\n"
|
||||
"cpu family\t: %d\n"
|
||||
"model\t\t: %d\n"
|
||||
"cpu family\t: %u\n"
|
||||
"model\t\t: %u\n"
|
||||
"model name\t: %s\n"
|
||||
"stepping\t: %d\n\n",
|
||||
i, cpu_vendor, class, cpu, model, cpu_id & 0xf);
|
||||
"stepping\t: %u\n\n",
|
||||
i, cpu_vendor, CPUID_TO_FAMILY(cpu_id), CPUID_TO_MODEL(cpu_id), model, cpu_id & CPUID_STEPPING);
|
||||
/* XXX per-cpu vendor / class / model / id? */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user