Skip to content

Commit

Permalink
don't log watchdog ping
Browse files Browse the repository at this point in the history
using the set_fan macro would produce a log message each time the
watchdog is pinged, so we call config->setfan() directly in this
situation.
  • Loading branch information
Victor Mataré committed Sep 29, 2015
1 parent 9b27209 commit 3bd6e33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/thinkfan.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ int fancontrol() {
// Write current fan level to IBM_FAN one cycle before the watchdog
// timeout ends, to let it know we're alive.
if (unlikely((wt -= tmp_sleeptime) <= sleeptime)) {
set_fan;
cur_lvl = config->limits[lvl_idx].level;
config->setfan();
wt = watchdog_timeout;
}

Expand Down

0 comments on commit 3bd6e33

Please sign in to comment.