| Summary: | [acpica] [patch] move temperature conversion macros to a common header | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Mark Johnston <markjdb> | ||||
| Component: | kern | Assignee: | freebsd-acpi (Nobody) <acpi> | ||||
| Status: | Closed Not Accepted | ||||||
| Severity: | Affects Only Me | CC: | gonzo, imp, jhb, jkim, markj | ||||
| Priority: | Normal | Keywords: | patch | ||||
| Version: | 1.0-CURRENT | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Mark Johnston
2010-12-02 21:10:09 UTC
Oops... TZ_CEL_TO_KEL should be replaced with TZ_CTOKELV in the patch. Not sure how that got into the patch. -- Mark Johnston markjdb@gmail.com jkim@, I think this patch is probably fine, what do you think? Generally, I am okay with the change. However, I don't like TZ_KELVTOC* macros. These stuff should stay in acpi_thermal.c. At least, TZ_KELVTOC() macro should not be moved. Also, I don't like TZ_* prefixes. These macros should be prefixed with something else. Actually, I am not even sure whether sysctl.h is the right file to put these misc. utility macros. batch change of PRs untouched in 2018 marked "in progress" back to open. Is this PR still valid? Does patch need rework before it can be committed? I think that we shouldn't commit this. The reason is that 0K is -273.15C. The .15 always throws people for a loop. Some devices assume it's -273.0, others -273.1 others -273.2 and others -273.15. That makes having a common macro hard. Although the exact conversion is known, how the device rounds is a device-specific thing. (In reply to Warner Losh from comment #6) Ok. |