blob: bfcab32ed218e58b91aa7b448cd0bb877a0d54b4 (
plain) (
tree)
|
|
#
# 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
|