Skip to content

Commit

Permalink
tests: benchmarks: peripheral_load: fix test
Browse files Browse the repository at this point in the history
Extend stack for flash thread.
Wait for DVFS init in clock thread.

Signed-off-by: Piotr Krzyzanowski <[email protected]>
  • Loading branch information
nordic-pikr committed Nov 8, 2024
1 parent 54f8a63 commit 84754cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/benchmarks/peripheral_load/src/clock_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(clock, LOG_LEVEL_INF);

#include <nrfs_backend_ipc_service.h>
#include <zephyr/devicetree.h>
#include <zephyr/devicetree/clocks.h>
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
Expand Down Expand Up @@ -161,7 +160,7 @@ static void clock_thread(void *arg1, void *arg2, void *arg3)

atomic_inc(&started_threads);

nrfs_backend_wait_for_connection(K_FOREVER);
k_msleep(100);
test_clock_control_request(cpuapp_hsfll_test_clk_contexts,
ARRAY_SIZE(cpuapp_hsfll_test_clk_contexts));

Expand Down
2 changes: 1 addition & 1 deletion tests/benchmarks/peripheral_load/src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extern atomic_t completed_threads;

/* FLASH thread: */
#define FLASH_THREAD_COUNT_MAX (40)
#define FLASH_THREAD_STACKSIZE (1024)
#define FLASH_THREAD_STACKSIZE (2048)
#define FLASH_THREAD_PRIORITY (5)
#define FLASH_THREAD_SLEEP (200)

Expand Down

0 comments on commit 84754cc

Please sign in to comment.