tests/kernel/workq/work: KERNEL_COHERENCE fixups

Putting IPC elements on the stack isn't allowed when KERNEL_COHERENCE
is set, just make test case data static (not all apps or subsystems
are going to work with incoherent stacks, but we should support it
where we can).

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2021-03-08 12:25:01 -08:00 committed by Anas Nashif
commit 6f82ebe2e8

View file

@ -1320,7 +1320,7 @@ static void test_1cpu_legacy_delayed_submit(void)
uint32_t max_ms = k_ticks_to_ms_ceil32(1U uint32_t max_ms = k_ticks_to_ms_ceil32(1U
+ k_ms_to_ticks_ceil32(DELAY_MS)); + k_ms_to_ticks_ceil32(DELAY_MS));
uint32_t elapsed_ms; uint32_t elapsed_ms;
struct k_delayed_work lwork; static struct k_delayed_work lwork;
/* Reset state and use non-blocking handler */ /* Reset state and use non-blocking handler */
reset_counters(); reset_counters();
@ -1362,7 +1362,7 @@ static void test_1cpu_legacy_delayed_resubmit(void)
uint32_t max_ms = k_ticks_to_ms_ceil32(1U uint32_t max_ms = k_ticks_to_ms_ceil32(1U
+ k_ms_to_ticks_ceil32(DELAY_MS)); + k_ms_to_ticks_ceil32(DELAY_MS));
uint32_t elapsed_ms; uint32_t elapsed_ms;
struct k_delayed_work lwork; static struct k_delayed_work lwork;
/* Reset state and use non-blocking handler */ /* Reset state and use non-blocking handler */
reset_counters(); reset_counters();
@ -1408,7 +1408,7 @@ static void test_1cpu_legacy_delayed_resubmit(void)
static void test_1cpu_legacy_delayed_cancel(void) static void test_1cpu_legacy_delayed_cancel(void)
{ {
int rc; int rc;
struct k_delayed_work lwork; static struct k_delayed_work lwork;
/* Reset state and use non-blocking handler */ /* Reset state and use non-blocking handler */
reset_counters(); reset_counters();