summaryrefslogtreecommitdiff
path: root/test/smp/regression/threadx_smp_time_slice_test.c
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-03-06 19:27:49 +0100
committerGitHub <[email protected]>2026-03-06 19:27:49 +0100
commit3726d7906b4808bfec7855fc088e073199df9120 (patch)
tree8789bfd03d1d49e1967e80d04aa4ff606fda43eb /test/smp/regression/threadx_smp_time_slice_test.c
parent4b6e8100d932a3a67b34c6eb17f84f3bffb9e2ae (diff)
parentc3259a216026372e3833dd8996a68f77e8595fbd (diff)
Merge pull request #510 from eclipse-threadx/devv6.5.0.202601_rel
Merge changes ahead of the v6.5.0.202601 release
Diffstat (limited to 'test/smp/regression/threadx_smp_time_slice_test.c')
-rw-r--r--test/smp/regression/threadx_smp_time_slice_test.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/test/smp/regression/threadx_smp_time_slice_test.c b/test/smp/regression/threadx_smp_time_slice_test.c
index b58f789f..fe97590a 100644
--- a/test/smp/regression/threadx_smp_time_slice_test.c
+++ b/test/smp/regression/threadx_smp_time_slice_test.c
@@ -65,8 +65,8 @@ UINT i;
/* Put system definition stuff in here, e.g. thread creates and other assorted
create information. */
- status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0,
+ pointer, TEST_STACK_SIZE_PRINTF,
0, 0, TX_NO_TIME_SLICE, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
status += tx_thread_smp_core_exclude(&thread_0, 0xE); /* Core 0 only! */
@@ -79,8 +79,8 @@ UINT i;
test_control_return(1);
}
- status = tx_thread_create(&thread_31a, "thread 31a", thread_31a_entry, 0,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_31a, "thread 31a", thread_31a_entry, 0,
+ pointer, TEST_STACK_SIZE_PRINTF,
31, 31, 1, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
status += tx_thread_smp_core_exclude(&thread_31a, 0); /* Any core. */
@@ -93,8 +93,8 @@ UINT i;
test_control_return(1);
}
- status = tx_thread_create(&thread_31b, "thread 31b", thread_31b_entry, 0,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_31b, "thread 31b", thread_31b_entry, 0,
+ pointer, TEST_STACK_SIZE_PRINTF,
31, 31, 1, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
status += tx_thread_smp_core_exclude(&thread_31b, 0); /* Any core. */
@@ -108,8 +108,8 @@ UINT i;
}
- status = tx_thread_create(&thread_31c, "thread 31c", thread_31c_entry, 0,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_31c, "thread 31c", thread_31c_entry, 0,
+ pointer, TEST_STACK_SIZE_PRINTF,
31, 31, 1, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
status += tx_thread_smp_core_exclude(&thread_31c, 0); /* Any core. */
@@ -123,8 +123,8 @@ UINT i;
}
- status = tx_thread_create(&thread_31d, "thread 31d", thread_31d_entry, 0,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_31d, "thread 31d", thread_31d_entry, 0,
+ pointer, TEST_STACK_SIZE_PRINTF,
31, 31, 1, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
status += tx_thread_smp_core_exclude(&thread_31d, 0); /* Any core. */
@@ -137,8 +137,8 @@ UINT i;
test_control_return(1);
}
- status = tx_thread_create(&thread_31e, "thread 31e", thread_31e_entry, 0,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_31e, "thread 31e", thread_31e_entry, 0,
+ pointer, TEST_STACK_SIZE_PRINTF,
31, 31, 1, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
status += tx_thread_smp_core_exclude(&thread_31e, 0); /* Any core. */
@@ -151,8 +151,8 @@ UINT i;
test_control_return(1);
}
- status = tx_thread_create(&thread_31f, "thread 31f", thread_31f_entry, 0,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_31f, "thread 31f", thread_31f_entry, 0,
+ pointer, TEST_STACK_SIZE_PRINTF,
31, 31, 1, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
status += tx_thread_smp_core_exclude(&thread_31f, 0); /* Any core. */
@@ -166,8 +166,8 @@ UINT i;
}
- status = tx_thread_create(&thread_31g, "thread 31g", thread_31g_entry, 0,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_31g, "thread 31g", thread_31g_entry, 0,
+ pointer, TEST_STACK_SIZE_PRINTF,
31, 31, 1, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
status += tx_thread_smp_core_exclude(&thread_31g, 0); /* Any core. */
@@ -183,8 +183,8 @@ UINT i;
/* Enable preemption-threshold for this thread to hit branch in tx_thread_time_slice
where the expired time-slice thread is replaced by a thread with preemption-threshold
enabled. */
- status = tx_thread_create(&thread_31h, "thread 31h", thread_31h_entry, 0,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_31h, "thread 31h", thread_31h_entry, 0,
+ pointer, TEST_STACK_SIZE_PRINTF,
31, 30, 1, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
status += tx_thread_smp_core_exclude(&thread_31h, 0); /* Any core. */
@@ -245,7 +245,7 @@ UINT status;
/* Now sleep for 20 ticks to let see if all the threads execute. */
tx_thread_sleep(20);
-
+
/* Now check and make sure all the threads ran. */
if ((status != TX_SUCCESS) || (thread_31a_counter == 0) || (thread_31b_counter == 0) || (thread_31c_counter == 0) || (thread_31d_counter == 0) ||
(thread_31e_counter == 0) || (thread_31f_counter == 0) || (thread_31g_counter == 0) || (thread_31h_counter == 0))
@@ -257,11 +257,11 @@ UINT status;
}
else
{
-
+
/* Successful test. */
printf("SUCCESS!\n");
test_control_return(0);
- }
+ }
}
@@ -281,8 +281,8 @@ static void thread_31b_entry(ULONG thread_input)
while(1)
{
-
- tx_thread_identify();
+
+ tx_thread_identify();
thread_31b_counter++;
}
}
@@ -293,8 +293,8 @@ static void thread_31c_entry(ULONG thread_input)
while(1)
{
-
- tx_thread_identify();
+
+ tx_thread_identify();
thread_31c_counter++;
}
}
@@ -305,8 +305,8 @@ static void thread_31d_entry(ULONG thread_input)
while(1)
{
-
- tx_thread_identify();
+
+ tx_thread_identify();
thread_31d_counter++;
}
}
@@ -317,8 +317,8 @@ static void thread_31e_entry(ULONG thread_input)
while(1)
{
-
- tx_thread_identify();
+
+ tx_thread_identify();
thread_31e_counter++;
}
}
@@ -329,8 +329,8 @@ static void thread_31f_entry(ULONG thread_input)
while(1)
{
-
- tx_thread_identify();
+
+ tx_thread_identify();
thread_31f_counter++;
}
}
@@ -341,8 +341,8 @@ static void thread_31g_entry(ULONG thread_input)
while(1)
{
-
- tx_thread_identify();
+
+ tx_thread_identify();
thread_31g_counter++;
}
}
@@ -353,8 +353,8 @@ static void thread_31h_entry(ULONG thread_input)
while(1)
{
-
- tx_thread_identify();
+
+ tx_thread_identify();
thread_31h_counter++;
}
}