summaryrefslogtreecommitdiffstats
path: root/power-8084.c
diff options
context:
space:
mode:
Diffstat (limited to 'power-8084.c')
-rw-r--r--power-8084.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/power-8084.c b/power-8084.c
index e7d26e7..04f202c 100644
--- a/power-8084.c
+++ b/power-8084.c
@@ -48,7 +48,6 @@
#include "utils.h"
static int first_display_off_hint;
-extern int display_boost;
int set_interactive_override(int on) {
char governor[80];
@@ -65,21 +64,17 @@ int set_interactive_override(int on) {
* We need to be able to identify the first display off hint
* and release the current lock holder
*/
- if (display_boost) {
- if (!first_display_off_hint) {
- undo_initial_hint_action();
- first_display_off_hint = 1;
- }
- /* used for all subsequent toggles to the display */
- undo_hint_action(DISPLAY_STATE_HINT_ID_2);
+ if (!first_display_off_hint) {
+ undo_initial_hint_action();
+ first_display_off_hint = 1;
}
+ /* Used for all subsequent toggles to the display */
+ undo_hint_action(DISPLAY_STATE_HINT_ID_2);
} else {
/* Display on */
- if (display_boost) {
- int resource_values2[] = {CPUS_ONLINE_MIN_2};
- perform_hint_action(DISPLAY_STATE_HINT_ID_2, resource_values2,
- sizeof(resource_values2) / sizeof(resource_values2[0]));
- }
+ int resource_values2[] = {CPUS_ONLINE_MIN_2};
+ perform_hint_action(DISPLAY_STATE_HINT_ID_2, resource_values2,
+ sizeof(resource_values2) / sizeof(resource_values2[0]));
}
return HINT_NONE;