Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177581313
D20123.1794794591.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
962 B
Referenced Files
None
Subscribers
None
D20123.1794794591.diff
View Options
Index: head/sys/arm64/arm64/identcpu.c
===================================================================
--- head/sys/arm64/arm64/identcpu.c
+++ head/sys/arm64/arm64/identcpu.c
@@ -72,6 +72,10 @@
SYSCTL_PROC(_hw, HW_MACHINE, machine, CTLTYPE_STRING | CTLFLAG_RD |
CTLFLAG_MPSAFE, NULL, 0, sysctl_hw_machine, "A", "Machine class");
+static char cpu_model[64];
+SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD,
+ cpu_model, sizeof(cpu_model), "Machine model");
+
/*
* Per-CPU affinity as provided in MPIDR_EL1
* Indexed by CPU number in logical order selected by the system.
@@ -1312,6 +1316,10 @@
cpu_desc[cpu].cpu_revision = CPU_REV(midr);
cpu_desc[cpu].cpu_variant = CPU_VAR(midr);
+
+ snprintf(cpu_model, sizeof(cpu_model), "%s %s r%dp%d",
+ cpu_desc[cpu].cpu_impl_name, cpu_desc[cpu].cpu_part_name,
+ cpu_desc[cpu].cpu_variant, cpu_desc[cpu].cpu_revision);
/* Save affinity for current CPU */
cpu_desc[cpu].mpidr = get_mpidr();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 2:03 AM (10 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41755152
Default Alt Text
D20123.1794794591.diff (962 B)
Attached To
Mode
D20123: Add a hw.model sysctl oid for arm64
Attached
Detach File
Event Timeline