From daafb894463a14555bac52cc27f6583c72253813 Mon Sep 17 00:00:00 2001 From: Dilip Gudlur Date: Thu, 25 Apr 2013 12:55:11 -0700 Subject: [PATCH] powerhal: Add display off and power collapse enable hint Change needed by powerhal to be able to send display off hint to perflock to enable power collapse for all cores Change-Id: I79cabc469055fe263b4b702f8d28263f2de36778 --- power/power-8974.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/power/power-8974.c b/power/power-8974.c index 5b3a5373..f446ebef 100644 --- a/power/power-8974.c +++ b/power/power-8974.c @@ -61,7 +61,7 @@ int set_interactive_override(struct power_module *module, int on) /* Display off. */ if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) { - int resource_values[] = {MS_500, SYNC_FREQ_300, OPTIMAL_FREQ_300}; + int resource_values[] = {DISPLAY_OFF, MS_500, SYNC_FREQ_300, OPTIMAL_FREQ_300, PWR_CLPS_ENA}; perform_hint_action(DISPLAY_STATE_HINT_ID, resource_values, sizeof(resource_values)/sizeof(resource_values[0]));