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