Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145731984
D14055.id39038.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
757 B
Referenced Files
None
Subscribers
None
D14055.id39038.diff
View Options
Index: stable/10/sys/dev/jedec_ts/jedec_ts.c
===================================================================
--- stable/10/sys/dev/jedec_ts/jedec_ts.c
+++ stable/10/sys/dev/jedec_ts/jedec_ts.c
@@ -192,6 +192,10 @@
if ((val & 0x1000) != 0)
temp = -temp;
temp = temp * 625 + 2731500;
+
+ /* sysctl(8) reports deciKelvin, so round accordingly. */
+ temp = (temp + 500) / 1000;
+
err = sysctl_handle_int(oidp, &temp, 0, req);
return (err);
}
@@ -245,7 +249,7 @@
tree = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
SYSCTL_ADD_PROC(ctx, tree, OID_AUTO, "temp",
CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_MPSAFE, dev, 0,
- ts_temp_sysctl, "IK4", "Current temperature");
+ ts_temp_sysctl, "IK", "Current temperature");
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 24, 5:25 PM (18 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28963152
Default Alt Text
D14055.id39038.diff (757 B)
Attached To
Mode
D14055: jedec_ts(4) is broken on stable/10
Attached
Detach File
Event Timeline
Log In to Comment