diff options
Diffstat (limited to 'schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case3.scen')
-rw-r--r-- | schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case3.scen | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case3.scen b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case3.scen new file mode 100644 index 0000000..27a42ff --- /dev/null +++ b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case3.scen @@ -0,0 +1,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 |