RESMON provides the update function of 'timer interval' on the runtime.
Should save the updated 'timer interval' value to 'struct resmon'.
Change-Id: Ice3deb34889343dfbcb555cb31fcfff37d6cf2a6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
return -EPERM;
}
+ monitor->timer_interval = interval;
+
return 0;
}
return -EINVAL;
}
+ if (monitor->timer_interval == timer_interval)
+ return 0;
+
/* Update new interval of timer-based resmon */
ret = resmon_timer_add(monitor, timer_interval);
if (ret < 0)