diff options
author | Todd Poynor <toddpoynor@google.com> | 2012-04-27 16:59:52 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2012-04-27 16:59:52 -0700 |
commit | 9d224c27f681d726e2c4d769e5829d2f17e7c414 (patch) | |
tree | 57b7dc3014f9e2c762d767d052a732267c507a62 /power | |
parent | e1021ba213319c88c47bcc97ab6b35c4193620e0 (diff) | |
download | device_samsung_tuna-9d224c27f681d726e2c4d769e5829d2f17e7c414.zip device_samsung_tuna-9d224c27f681d726e2c4d769e5829d2f17e7c414.tar.gz device_samsung_tuna-9d224c27f681d726e2c4d769e5829d2f17e7c414.tar.bz2 |
tuna: Power HAL: turn off VSYNC power hint
Change-Id: Icb36ec7fa3057978c7075ddb4e961c1ef403e7f4
Diffstat (limited to 'power')
-rw-r--r-- | power/power_tuna.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/power/power_tuna.c b/power/power_tuna.c index 1c7cc9d..63ccfe8 100644 --- a/power/power_tuna.c +++ b/power/power_tuna.c @@ -34,10 +34,6 @@ static int sPowerStatefd; static const char *pwr_states[] = { "mem", "on" }; -#define BOOST_PATH "/sys/devices/system/cpu/cpufreq/interactive/boost" -static int boost_fd = -1; -static int boost_warned; - static void sysfs_write(char *path, char *s) { char buf[80]; @@ -115,27 +111,10 @@ static void tuna_power_hint(struct power_module *module, power_hint_t hint, switch (hint) { case POWER_HINT_VSYNC: - if (boost_fd < 0) - boost_fd = open(BOOST_PATH, O_WRONLY); - - if (boost_fd < 0) { - if (!boost_warned) { - strerror_r(errno, buf, sizeof(buf)); - ALOGE("Error opening %s: %s\n", BOOST_PATH, buf); - boost_warned = 1; - } - break; - } - - len = write(boost_fd, (int) data ? "1" : "0", 1); - if (len < 0) { - strerror_r(errno, buf, sizeof(buf)); - ALOGE("Error writing to %s: %s\n", BOOST_PATH, buf); - } break; default: - break; + break; } } |