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>
This commit is contained in:
Bill Richardson
2014-11-13 11:26:56 -08:00
committed by chrome-internal-fetch
parent e28b6184b1
commit ae55a28dfc

View File

@@ -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);
}