MCPcopy Create free account
hub / github.com/F-Stack/f-stack / aw_thermal_sysctl

Function aw_thermal_sysctl

freebsd/arm/allwinner/aw_thermal.c:497–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497static int
498aw_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
511static void
512aw_thermal_throttle(struct aw_thermal_softc *sc, int enable)

Callers

nothing calls this directly

Calls 2

aw_thermal_gettempFunction · 0.85
sysctl_handle_opaqueFunction · 0.85

Tested by

no test coverage detected