Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Macros | |
#define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
#define | NUM_THREAD 4 |
#define | IDLE_THRESH 20 |
#define | SLEEP_TICKLESS k_ticks_to_ms_floor64(IDLE_THRESH) |
#define | SLEEP_TICKFUL k_ticks_to_ms_floor64(IDLE_THRESH - 1) |
#define | SLICE_SIZE k_ticks_to_ms_floor64(IDLE_THRESH >> 1) |
#define | SLICE_SIZE_LIMIT k_ticks_to_ms_floor64((IDLE_THRESH >> 1) + 1) |
#define | ALIGN_MS_BOUNDARY() |
Functions | |
static | K_THREAD_STACK_ARRAY_DEFINE (tstack, 4,(512+CONFIG_TEST_EXTRA_STACKSIZE)) |
K_SEM_DEFINE (sema, 0, 4) | |
static void | thread_tslice (void *p1, void *p2, void *p3) |
void | test_tickless_sysclock (void) |
Verify system clock with and without tickless idle. More... | |
void | test_tickless_slice (void) |
Verify tickless functionality with time slice. More... | |
void | test_main (void) |
Variables | |
static struct k_thread | tdata [4] |
static int64_t | elapsed_slice |
#define ALIGN_MS_BOUNDARY | ( | ) |
#define IDLE_THRESH 20 |
#define NUM_THREAD 4 |
#define SLEEP_TICKFUL k_ticks_to_ms_floor64(IDLE_THRESH - 1) |
#define SLEEP_TICKLESS k_ticks_to_ms_floor64(IDLE_THRESH) |
#define SLICE_SIZE k_ticks_to_ms_floor64(IDLE_THRESH >> 1) |
#define SLICE_SIZE_LIMIT k_ticks_to_ms_floor64((IDLE_THRESH >> 1) + 1) |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
K_SEM_DEFINE | ( | sema | , |
0 | , | ||
4 | |||
) |
|
static |
TESTPOINT: verify slicing scheduler behaves as expected
|
static |
|
static |