blob: c7c4e2a0eb564335e69e971c82445821607b9fa6 (
plain) (
blame)
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
|
#
# Create 5 tasks of the same priority. Then
# change the affinity and the priority of the
# task that is on the ready queue.
#
rtems_init 4
task_create smp1 4
task_create smp2 4
task_create smp3 4
task_create smp4 4
task_create smp5 4
# GOAL: want 0x0a010004 - 0x0a010001 as heir and executings
# GOAL: on CPUs 0 -3 respectively
cpus smp4 smp3 smp2 smp1
task_set_affinity smp5 0x03
task_priority smp5 3
# GOAL: want 0x0a010005, 0x0a010003, 0x0a010002,0x0a010001
# GOAL: as heir and executings on CPUs 0-3 respectively
cpus smp5 smp3 smp2 smp1
task_set_affinity smp4 0x01
# GOAL: want 0x0a010002, 0x0a010005, 0x0a010003,0x0a010001
# GOAL: as heir and executings on CPUs 0-3 respectively
cpus smp5 smp3 smp2 smp1
|