summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2017-05-29 20:45:14 +0200
committerChristopher N. Hesse <raymanfx@gmail.com>2017-05-29 20:45:14 +0200
commit63b5bd7d6b7573d08177b1870af9631804585cee (patch)
tree39f165a38f315e7c12e8bda4e82809f1ad051862
parentb0d8610bdb05e3e754f9572c2cef0673cb5bc562 (diff)
downloadandroid_hardware_samsung-63b5bd7d6b7573d08177b1870af9631804585cee.tar.gz
android_hardware_samsung-63b5bd7d6b7573d08177b1870af9631804585cee.tar.bz2
android_hardware_samsung-63b5bd7d6b7573d08177b1870af9631804585cee.zip
power: Write IO busy parameter for big cluster
Change-Id: I9e09f640b956be87729df735225fcfe8f066ab48
-rw-r--r--power/power.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/power/power.c b/power/power.c
index ce78be5..88d6d2e 100644
--- a/power/power.c
+++ b/power/power.c
@@ -42,7 +42,8 @@
#define BOOST_PATH CPU0_INTERACTIVE_PATH "/boost"
#define BOOSTPULSE_PATH CPU0_INTERACTIVE_PATH "/boostpulse"
-#define IO_IS_BUSY_PATH CPU0_INTERACTIVE_PATH "/io_is_busy"
+#define CPU0_IO_IS_BUSY_PATH CPU0_INTERACTIVE_PATH "/io_is_busy"
+#define CPU4_IO_IS_BUSY_PATH CPU4_INTERACTIVE_PATH "/io_is_busy"
#define CPU0_HISPEED_FREQ_PATH CPU0_INTERACTIVE_PATH "/hispeed_freq"
#define CPU4_HISPEED_FREQ_PATH CPU4_INTERACTIVE_PATH "/hispeed_freq"
@@ -415,7 +416,12 @@ static void samsung_power_set_interactive(struct power_module *module, int on)
}
out:
- sysfs_write(IO_IS_BUSY_PATH, on ? "1" : "0");
+ sysfs_write(CPU0_IO_IS_BUSY_PATH, on ? "1" : "0");
+ rc = stat(CPU4_IO_IS_BUSY_PATH, &sb);
+ if (rc == 0) {
+ sysfs_write(CPU4_IO_IS_BUSY_PATH, on ? "1" : "0");
+ }
+
ALOGV("power_set_interactive: %d done", on);
}