tests: kernel: profiling: Add customized pm device policy handler.
Besides implementing a customized pm_policy_next_state() in the application layer, a customized device policy handler of power management, pm_policy_low_power_devices(), is also needed if CONFIG_PM_POLICY_APP is enabled. This CL adds this function to prevent build errors. Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
This commit is contained in:
parent
715efe25cd
commit
30a5424d0e
|
@ -54,6 +54,12 @@ struct pm_state_info pm_policy_next_state(int32_t ticks)
|
|||
return (struct pm_state_info){PM_STATE_ACTIVE, 0, 0};
|
||||
}
|
||||
|
||||
/* Our PM device policy handler */
|
||||
bool pm_policy_low_power_devices(enum pm_state state)
|
||||
{
|
||||
return pm_is_sleep_state(state);
|
||||
}
|
||||
|
||||
/*work handler*/
|
||||
static void work_handler(struct k_work *w)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue