1 /*
2  * Copyright (c) 2022 Synopsys
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/ztest.h>
8 #include "test_common.h"
9 
10 #ifndef CONFIG_ARC_DSP
11 #error Rebuild with the ARC_DSP config option enabled
12 #endif
13 
14 #ifndef CONFIG_ARC_DSP_SHARING
15 #error Rebuild with the ARC_DSP_SHARING config option enabled
16 #endif
17 
generic_setup(void)18 static void *generic_setup(void)
19 {
20 	/*
21 	 * Enable round robin scheduling to allow both the low priority complex
22 	 * computation and load/store tasks to execute. The high priority complex
23 	 * computation and load/store tasks will preempt the low priority tasks
24 	 * periodically.
25 	 */
26 	k_sched_time_slice_set(10, THREAD_LOW_PRIORITY);
27 
28 	return NULL;
29 }
30 
31 ZTEST_SUITE(dsp_sharing, NULL, generic_setup, NULL, NULL, NULL);
32