diff options
| author | LuK1337 <priv.luk@gmail.com> | 2016-12-20 21:50:31 +0100 |
|---|---|---|
| committer | audahadi <wan.audahadi@gmail.com> | 2016-12-22 17:23:12 +0530 |
| commit | b84cd7c1d36abbcf0d43a7cf1771bea6658930f4 (patch) | |
| tree | 42421cb8d20d21b2f885f5428db03d7088ceaf47 | |
| parent | d73f7d86725d5f671e39020929cb40391ba78c6d (diff) | |
msm8916-common: Remove Power HAL extension
* Unneeded, also seems to cause issues with mobile data.
Change-Id: I16f32ab37fbf2c18c7a302b3c7d2bb20027ccc5f
| -rw-r--r-- | BoardConfigCommon.mk | 1 | ||||
| -rw-r--r-- | power/power_ext.c | 53 |
2 files changed, 0 insertions, 54 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 863dd36..4f28dcf 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -140,7 +140,6 @@ BOARD_CACHEIMAGE_PARTITION_SIZE := 33554432 BOARD_FLASH_BLOCK_SIZE := 131072 # Power -TARGET_POWERHAL_SET_INTERACTIVE_EXT := $(VENDOR_PATH)/power/power_ext.c TARGET_POWERHAL_VARIANT := qcom # Qualcomm support diff --git a/power/power_ext.c b/power/power_ext.c deleted file mode 100644 index df734a3..0000000 --- a/power/power_ext.c +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2016 The CyanogenMod Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#define LOG_TAG "PowerHAL_MSM8939_Ext" - -#include <utils/Log.h> -#include "utils.h" - -#define BIG_MAX_CPU_PATH "/sys/devices/system/cpu/cpu0/core_ctl/max_cpus" - -/** - * If target is 8916: - * return 1 - * else: - * return 0 - */ -static int is_target_8916(void) -{ - static int is_8916 = -1; - int soc_id; - - if (is_8916 >= 0) - return is_8916; - - soc_id = get_soc_id(); - if (soc_id == 206 || (soc_id >= 247 && soc_id <= 250)) - is_8916 = 1; - else - is_8916 = 0; - - return is_8916; -} - -void cm_power_set_interactive_ext(int on) -{ - if (!is_target_8916()) { - ALOGD("%sabling big CPU cluster", on ? "En" : "Dis"); - sysfs_write(BIG_MAX_CPU_PATH, on ? "4" : "0"); - } -} |
