summaryrefslogtreecommitdiffstats
path: root/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case4.scen
diff options
context:
space:
mode:
Diffstat (limited to 'schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case4.scen')
-rw-r--r--schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case4.scen27
1 files changed, 27 insertions, 0 deletions
diff --git a/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case4.scen b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case4.scen
new file mode 100644
index 0000000..bfcab32
--- /dev/null
+++ b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case4.scen
@@ -0,0 +1,27 @@
+#
+# Verify that affinity APIs work with the right values
+#
+# This scenario does **NOT** change the affinity of any thread
+# which ever executes.
+#
+rtems_init 4
+task_create smp1 5
+current_cpu 3
+
+dispatch
+cpus IDLE IDLE IDLE smp1
+
+task_create smp2 4
+cpus IDLE IDLE smp2 smp1
+
+task_set_affinity smp2 0x01
+cpus smp2 IDLE IDLE smp1
+
+task_set_affinity smp2 0x02
+cpus IDLE smp2 IDLE smp1
+
+task_set_affinity smp2 0x04
+cpus IDLE IDLE smp2 smp1
+
+task_set_affinity smp2 0x08
+cpus IDLE IDLE smp1 smp2