source: rtems-schedsim/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_exercise_affinity_api.scen @ a829f37

Last change on this file since a829f37 was a829f37, checked in by Joel Sherrill <joel.sherrill@…>, on May 20, 2014 at 5:34:38 PM

cpus4_exercise_affinity_api.scen: Reword comment

  • Property mode set to 100644
File size: 730 bytes
Line 
1#
2#  Verify that affinity APIs work with the right values
3#
4#  This scenario does **NOT** change the affinity of any thread
5#  which ever executes.
6#
7rtems_init 4
8task_create smp1 3
9task_create smp2 6
10task_create smp3 7
11task_create smp4 8
12task_create smp5 10
13dispatch
14# GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
15# GOAL:    on CPUs 1 - 4 respectively
16cpus
17
18# GOAL: These should work OK and change the affinity
19task_get_affinity smp5
20task_set_affinity smp5 0x01
21task_get_affinity smp5
22task_set_affinity smp5 0x02
23task_get_affinity smp5
24task_set_affinity smp5 0x04
25task_get_affinity smp5
26task_set_affinity smp5 0x08
27task_get_affinity smp5
28
29# GOAL This should fail.
30task_set_affinity smp5 0x10
31task_get_affinity smp5
32
Note: See TracBrowser for help on using the repository browser.