pass: resmon: Add new Resource Monitor (resmon) module
PASS required the resource monitoring in order to decide the current system
status. Even if it was required, PASS had not supported the separate
resource monitor module.
Add Resource Monitor (resmon) module to support the resource monitoring.
Other modules in PASS are able to use resmon in order to monitor/collect
the resource data such as frequency, utilization, file/memory's usage and so on.
Resource-Monitor provides two monitoring method as following:
- Timer-based resource monitor like polling method. There are both oneshot
and periodic timer and it requires the interval as the mandatory.
- Uevent-based resource monitor like interrupt method. It notifies the result
of monitoring when receiving the uevent. But, uevent-based resource monitor
will be implemented on later.
[Function description]
- Timer-based resource monitor
int pass_resmon_update_timer_interval()
int pass_resmon_register_timer()
int pass_resmon_unregister_timer()
Change-Id: I4ec40f570fa0083a0fc22754174e63033cd99836
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>