Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160953124
D57897.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
301 B
Referenced Files
None
Subscribers
None
D57897.diff
View Options
diff --git a/sys/sys/cpu.h b/sys/sys/cpu.h
--- a/sys/sys/cpu.h
+++ b/sys/sys/cpu.h
@@ -51,6 +51,12 @@
return ((struct pcpu *)v);
}
+static __inline u_int
+cpu_get_pcpuid(device_t dev)
+{
+ return (cpu_get_pcpu(dev)->pc_cpuid);
+}
+
static __inline int32_t
cpu_get_nominal_mhz(device_t dev)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 30, 9:25 AM (13 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34421751
Default Alt Text
D57897.diff (301 B)
Attached To
Mode
D57897: cpu: New cpu_get_pcpuid(), retrieves internal CPU ID
Attached
Detach File
Event Timeline
Log In to Comment