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:
parent
ebaeccbded
commit
f23224f040
3 changed files with 1 additions and 21 deletions
|
@ -7,8 +7,6 @@ CONFIG_TEST_HW_STACK_PROTECTION=n
|
||||||
# Disable HW Stack Protection (see #28664)
|
# Disable HW Stack Protection (see #28664)
|
||||||
CONFIG_HW_STACK_PROTECTION=n
|
CONFIG_HW_STACK_PROTECTION=n
|
||||||
# to check idle thread
|
# to check idle thread
|
||||||
CONFIG_PM=y
|
|
||||||
CONFIG_PM_POLICY_CUSTOM=y
|
|
||||||
CONFIG_IDLE_STACK_SIZE=2048
|
CONFIG_IDLE_STACK_SIZE=2048
|
||||||
# to check isr
|
# to check isr
|
||||||
CONFIG_IRQ_OFFLOAD=y
|
CONFIG_IRQ_OFFLOAD=y
|
||||||
|
|
|
@ -22,24 +22,6 @@ static void tdata_dump_callback(const struct k_thread *thread, void *user_data)
|
||||||
log_stack_usage(thread);
|
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*/
|
/*work handler*/
|
||||||
static void work_handler(struct k_work *w)
|
static void work_handler(struct k_work *w)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,4 +11,4 @@ tests:
|
||||||
- nrf5340dk/nrf5340/cpunet
|
- nrf5340dk/nrf5340/cpunet
|
||||||
tags:
|
tags:
|
||||||
- kernel
|
- kernel
|
||||||
- pm
|
- profiling
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue