summaryrefslogtreecommitdiff
path: root/schedsim/shell/schedsim_smpsimple/scenarios/cpus4_pick_older.scen
blob: b069e66d317dda9e58dca11936f5aa93bfd6a25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
#  Verify we select the oldest task at a priority
#
rtems_init 4
task_create smp1 3
task_create smp2 6
task_create smp3 7
task_create smp4 8
# GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
# GOAL:    on CPUs 3 - 0 respectively
cpus smp4 smp3 smp2 smp1

task_create smp5 5
clock_tick 1
# GOAL: Tasks 0x0a010001, 0x0a010002, 0x0a010003, and 0x0a010005 are
# GOAL:    heir and executing on CPUs 3 - 0 respectively
cpus smp5 smp3 smp2 smp1

task_create smp6 5
clock_tick 1
# GOAL: Tasks 0x0a010001, 0x0a010002, 0x0a010006, and 0x0a010005 are
# GOAL:    heir and executing on CPUs 3 - 0 respectively
cpus smp5 smp6 smp2 smp1

task_create smp7 5
clock_tick 1
# GOAL: Tasks 0x0a010001, 0x0a010007, 0x0a010006, and 0x0a010005 are
# GOAL:    heir and executing on CPUs 3 - 0 respectively
cpus smp5 smp6 smp7 smp1

# We should pick task smp5 (0x0a010005) on CPU 0
task_create smp8 4
# GOAL: Tasks 0x0a010001, 0x0a010008, 0x0a010006, and 0x0a010005 are
# GOAL:    heir and executing on CPUs 3 - 0 respectively
cpus smp5 smp6 smp8 smp1