aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Daynard <nardholio@gmail.com>2015-09-12 23:41:39 -0400
committerdoc HD <doc.divxm@gmail.com>2015-09-19 00:35:43 +0300
commit2966007fd8427b1c3a9bac35054f78c6e3e4fe4f (patch)
tree008aa6d559541e09cb818793ccddb2bba8b3ea11
parent31232478044a1c67e92d32c175b8d4695a98f2e1 (diff)
msm8960-common: online second core at screen on
Change-Id: I14cfb8154e0618ca1ccc23e349e9608b60cc618d
-rw-r--r--power/power_ext.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/power/power_ext.c b/power/power_ext.c
index 6d15fca..e63d80b 100644
--- a/power/power_ext.c
+++ b/power/power_ext.c
@@ -24,6 +24,8 @@
#define GO_HISPEED_LOAD_PATH "/sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load"
#define OFF_HIGHSPEED_LOAD 110
+#define CPU1_ONLINE "/sys/devices/system/cpu/cpu1/online"
+
static int go_hispeed_load = 0;
static int off_hispeed_load = OFF_HIGHSPEED_LOAD;
@@ -84,6 +86,10 @@ static int sysfs_write(char *path, char *s)
void cm_power_set_interactive_ext(int on)
{
+ if (on) {
+ sysfs_write(CPU1_ONLINE, "1");
+ }
+
char tmp_str[NODE_MAX];
int tmp;