This patch removes the tm2-specific define statements such as
TM2_CPU_MIN_NUM and TM2_CPU_MAX_NUM, which were used to check CPU
indexes out of range. The reasons why we need to remove this
board-specific code are that 1) such CPU indexes out of range would
never occur and 2) it is required to standardize the HAL function
implementation.
Change-Id: I10c96c36975bbe5b33e6102742fac917682616f1
Signed-off-by: Wook Song <wook16.song@samsung.com>
#define TMU_TEMP_PATH_SUFFIX "/temp"
#define TMU_POLICY_PATH_SUFFIX "/policy"
-#define TM2_CPU_MIN_NUM 0
-#define TM2_CPU_MAX_NUM 7
-
static int tm2_dvfs_get_curr_governor(char *res_name, char *governor)
{
char path[PATH_MAX];
if ((!res_name))
return -EINVAL;
- if ((cpu < TM2_CPU_MIN_NUM) || (cpu > TM2_CPU_MAX_NUM))
- return -EINVAL;
snprintf(path, PATH_MAX, "%s%d%s",
CPU_ONLINE_PATH_PREFIX,
if ((!res_name))
return -EINVAL;
- if ((cpu < TM2_CPU_MIN_NUM) || (cpu > TM2_CPU_MAX_NUM))
- return -EINVAL;
if ((on != CPU_ONLINE_STATE_ON) && (on != CPU_ONLINE_STATE_OFF))
return -EINVAL;