Replace per-type spXX_to_milli() functions with a table-driven
asmc_sensor_convert() that looks up the divisor by SMC type string.
Details
Details
- Reviewers
adrian - Commits
- rG126f82a3eb61: asmc: deduplicate sensor converters and cause sysctls
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| sys/dev/asmc/asmc.c | ||
|---|---|---|
| 2595 | oh interesting, is this handling key differences between sleep and non-sleep stuff? what did the old code do? Just assume MSSP always, right? | |
| sys/dev/asmc/asmc.c | ||
|---|---|---|
| 2595 | The old code had two separate handlers each hardcoded to its own key and is_sleep flag. The diff merged them into one handler using arg2 as params. No new logic was introduced in this diff. | |