tests: kernel: remove pm from profiling test

PM should be tested on its own. This test has been adding PM hooks and
tests without a good reason.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2024-04-10 14:18:45 +00:00 committed by Fabio Baltieri
commit f23224f040
3 changed files with 1 additions and 21 deletions

View file

@ -7,8 +7,6 @@ CONFIG_TEST_HW_STACK_PROTECTION=n
# Disable HW Stack Protection (see #28664)
CONFIG_HW_STACK_PROTECTION=n
# to check idle thread
CONFIG_PM=y
CONFIG_PM_POLICY_CUSTOM=y
CONFIG_IDLE_STACK_SIZE=2048
# to check isr
CONFIG_IRQ_OFFLOAD=y

View file

@ -22,24 +22,6 @@ static void tdata_dump_callback(const struct k_thread *thread, void *user_data)
log_stack_usage(thread);
}
/* Our PM policy handler */
const struct pm_state_info *pm_policy_next_state(uint8_t cpu, int32_t ticks)
{
static bool test_flag;
ARG_UNUSED(cpu);
/* Call k_thread_foreach only once otherwise it will
* flood the console with stack dumps.
*/
if (!test_flag) {
k_thread_foreach(tdata_dump_callback, NULL);
test_flag = true;
}
return NULL;
}
/*work handler*/
static void work_handler(struct k_work *w)
{

View file

@ -11,4 +11,4 @@ tests:
- nrf5340dk/nrf5340/cpunet
tags:
- kernel
- pm
- profiling