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:
Mulin Chao 2021-02-17 01:04:18 -08:00 committed by Anas Nashif
parent 715efe25cd
commit 30a5424d0e

View file

@ -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)
{