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:
parent
0fd9e4bf68
commit
6f82ebe2e8
1 changed files with 3 additions and 3 deletions
|
@ -1320,7 +1320,7 @@ static void test_1cpu_legacy_delayed_submit(void)
|
|||
uint32_t max_ms = k_ticks_to_ms_ceil32(1U
|
||||
+ k_ms_to_ticks_ceil32(DELAY_MS));
|
||||
uint32_t elapsed_ms;
|
||||
struct k_delayed_work lwork;
|
||||
static struct k_delayed_work lwork;
|
||||
|
||||
/* Reset state and use non-blocking handler */
|
||||
reset_counters();
|
||||
|
@ -1362,7 +1362,7 @@ static void test_1cpu_legacy_delayed_resubmit(void)
|
|||
uint32_t max_ms = k_ticks_to_ms_ceil32(1U
|
||||
+ k_ms_to_ticks_ceil32(DELAY_MS));
|
||||
uint32_t elapsed_ms;
|
||||
struct k_delayed_work lwork;
|
||||
static struct k_delayed_work lwork;
|
||||
|
||||
/* Reset state and use non-blocking handler */
|
||||
reset_counters();
|
||||
|
@ -1408,7 +1408,7 @@ static void test_1cpu_legacy_delayed_resubmit(void)
|
|||
static void test_1cpu_legacy_delayed_cancel(void)
|
||||
{
|
||||
int rc;
|
||||
struct k_delayed_work lwork;
|
||||
static struct k_delayed_work lwork;
|
||||
|
||||
/* Reset state and use non-blocking handler */
|
||||
reset_counters();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue