diff options
author | Bill Richardson <wfrichar@chromium.org> | 2014-11-13 11:26:56 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-14 23:56:39 +0000 |
commit | ae55a28dfc4fdb9216aca367b8665ad6108e53fb (patch) | |
tree | b44bf8bac43dc674454e5f29b460ca4ba9b2c44e /common | |
parent | e28b6184b117bfa3e0193ce8ed6a84b70c631c51 (diff) | |
download | chrome-ec-ae55a28dfc4fdb9216aca367b8665ad6108e53fb.tar.gz |
Remove frequent fan-change updates from EC console
An earlier commit posted fan-change info to the console. Turns
out it's a little too annoying, and disabling it with the "chan"
command would also hide messages related to thermal shutdown.
This just removes those updates completely.
BUG=chrome-os-partner:33775
BRANCH=ToT,samus
TEST=make buildall -j
Watch the EC console. The messages no longer appear.
Change-Id: Ie8c48d7ce493a25bf0afbd26d280a87dda882c1a
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/229623
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/fan.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/common/fan.c b/common/fan.c index b99b770580..cb080c15c9 100644 --- a/common/fan.c +++ b/common/fan.c @@ -15,10 +15,6 @@ #include "system.h" #include "util.h" -/* Console output macros */ -#define CPUTS(outstr) cputs(CC_THERMAL, outstr) -#define CPRINTS(format, args...) cprints(CC_THERMAL, format, ## args) - /* True if we're listening to the thermal control task. False if we're setting * things manually. */ static int thermal_control_enabled[CONFIG_FANS]; @@ -49,7 +45,6 @@ int fan_percent_to_rpm(int fan, int pct) test_mockable void fan_set_percent_needed(int fan, int pct) { int actual_rpm, new_rpm; - static int prev_rpm[CONFIG_FANS]; if (!thermal_control_enabled[fan]) return; @@ -65,11 +60,6 @@ test_mockable void fan_set_percent_needed(int fan, int pct) new_rpm < fans[fan].rpm_start) new_rpm = fans[fan].rpm_start; - if (new_rpm != prev_rpm[fan]) { - CPRINTS("Fan %d %d%% => %d rpm", fan, pct, new_rpm); - prev_rpm[fan] = new_rpm; - } - fan_set_rpm_target(fans[fan].ch, new_rpm); } |