get_thermal_result() is called once. It is possible to be removed
instead of calling resmon (resouce monitor) API directly without
any middle step.
Change-Id: Ib058d540056fe1a8fc7b206fb98c096272c17121
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
return 0;
}
-static inline void *get_thermal_result(struct pass_resource *res)
-{
- return pass_resmon_get_result(res, RESMON_SRC_THERMAL);
-}
-
static int thermal_get_scenario(void *data, void *user_data)
{
void **scenario = data;
int ret;
/* Get thermal_result raw data by reading directly */
- thermal_result = get_thermal_result(res);
+ thermal_result = pass_resmon_get_result(res, RESMON_SRC_THERMAL);
/*
* Update thermal scenario by using both the monitored raw data