summaryrefslogtreecommitdiffstats
path: root/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case3.scen
blob: 27a42ff0ca7a49cff49907da1f904cb81391844c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
#  Exercise priority and affinity.
#  priorities such that finding an heir requires scanning the
#  ready set of threads.
#
rtems_init 4
task_create smp1 10
task_create smp2 10
task_create smp3 10
task_create smp4 12
task_create smp5 10
# GOAL: Cores 0-3 should be 0x0a01000[5321] respectively
cpus smp5 smp3 smp2 smp1

# GOAL: No change - pri is too low to run 
task_create pri1 -a 0x2 11
cpus smp5 smp3 smp2 smp1

# GOAL: pri1 should preempt smp3 on core 1
# GOAL: Cores 0-3 should be 0x0a01000[5621] respectively
task_priority pri1 9
cpus smp5 pri1 smp2 smp1