From ae55a28dfc4fdb9216aca367b8665ad6108e53fb Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 13 Nov 2014 11:26:56 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/229623 Reviewed-by: Randall Spangler --- common/fan.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'common/fan.c') 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); } -- cgit v1.2.1