| 495 | } |
| 496 | |
| 497 | static int |
| 498 | aw_thermal_sysctl(SYSCTL_HANDLER_ARGS) |
| 499 | { |
| 500 | struct aw_thermal_softc *sc; |
| 501 | int sensor, val; |
| 502 | |
| 503 | sc = arg1; |
| 504 | sensor = arg2; |
| 505 | |
| 506 | val = aw_thermal_gettemp(sc, sensor) + TEMP_C_TO_K; |
| 507 | |
| 508 | return sysctl_handle_opaque(oidp, &val, sizeof(val), req); |
| 509 | } |
| 510 | |
| 511 | static void |
| 512 | aw_thermal_throttle(struct aw_thermal_softc *sc, int enable) |
nothing calls this directly
no test coverage detected