diff options
| author | Gabriele M <moto.falcon.git@gmail.com> | 2017-04-03 00:00:00 +0200 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-16 16:39:01 +0200 |
| commit | a6736df7ffd704c0d414470d0052acb09943245e (patch) | |
| tree | 85866247d6962ae5151701f1329e7776502bba75 /mtk | |
| parent | 489eebb4c03443163a426081b44c2cea21569bc6 (diff) | |
power: Update for PerformanceManager changes
PerformanceManager is again compatible with AOSP, so undo
part of the changes not to crash the HAL.
Change-Id: Ifeaae04fff8cafb4df3becc87dfdbeae48006ee3
Diffstat (limited to 'mtk')
| -rw-r--r-- | mtk/power/power.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mtk/power/power.c b/mtk/power/power.c index bec1a00..2a45aff 100644 --- a/mtk/power/power.c +++ b/mtk/power/power.c @@ -64,11 +64,9 @@ static void power_fwrite(const char *path, char *s) static void power_hint(struct power_module *module, power_hint_t hint, void *data) { - int32_t dataint = -1; switch (hint) { case POWER_HINT_LOW_POWER: - dataint = *(int32_t *)data; - if (dataint) { + if (data) { power_fwrite(MT_FPS_UPPER_BOUND_PATH, "30"); power_fwrite(MT_RUSH_BOOST_PATH, "0"); } else { |
