summaryrefslogtreecommitdiff
path: root/common/fan.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/fan.c')
-rw-r--r--common/fan.c10
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);
}