From 4c96994df0edd76b981d34776823681440f3b371 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Sat, 9 Jun 2018 16:16:19 +0300 Subject: power: Remove leftover support for ondemand governor Change-Id: Id4c2aa5efa7101535a7311e34529e0b90c7491f1 --- power-8974.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'power-8974.c') diff --git a/power-8974.c b/power-8974.c index 9aa560b..6186818 100644 --- a/power-8974.c +++ b/power-8974.c @@ -47,7 +47,6 @@ #include "power-common.h" #include "utils.h" -static int display_hint_sent; static int display_hint2_sent; static int first_display_off_hint; extern int display_boost; @@ -78,20 +77,6 @@ int set_interactive_override(int on) { display_hint2_sent = 1; } } - - if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && - (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) { - int resource_values[] = {MS_500, SYNC_FREQ_600, OPTIMAL_FREQ_600, - THREAD_MIGRATION_SYNC_OFF}; - - if (!display_hint_sent) { - perform_hint_action(DISPLAY_STATE_HINT_ID, resource_values, - sizeof(resource_values) / sizeof(resource_values[0])); - display_hint_sent = 1; - } - - return HINT_HANDLED; - } } else { /* Display on */ if (display_boost && display_hint2_sent) { @@ -100,14 +85,6 @@ int set_interactive_override(int on) { sizeof(resource_values2) / sizeof(resource_values2[0])); display_hint2_sent = 0; } - - if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && - (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) { - undo_hint_action(DISPLAY_STATE_HINT_ID); - display_hint_sent = 0; - - return HINT_HANDLED; - } } return HINT_NONE; -- cgit v1.2.3