forked from Imagelibrary/rtems
smpaffinity01: Use Priority Affinity SMP scheduler.
This commit is contained in:
@@ -104,7 +104,6 @@ void Validate_affinity(void )
|
|||||||
rtems_task_priority priority;
|
rtems_task_priority priority;
|
||||||
char ch[2];
|
char ch[2];
|
||||||
|
|
||||||
|
|
||||||
puts( "Init - Set Init priority to high");
|
puts( "Init - Set Init priority to high");
|
||||||
sc = rtems_task_set_priority( Init_id, 1, &priority );
|
sc = rtems_task_set_priority( Init_id, 1, &priority );
|
||||||
directive_failed( sc, "Set Init Priority" );
|
directive_failed( sc, "Set Init Priority" );
|
||||||
@@ -240,6 +239,8 @@ static void Init(rtems_task_argument arg)
|
|||||||
|
|
||||||
#define CONFIGURE_SMP_APPLICATION
|
#define CONFIGURE_SMP_APPLICATION
|
||||||
|
|
||||||
|
#define CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP
|
||||||
|
|
||||||
#define CONFIGURE_SMP_MAXIMUM_PROCESSORS NUM_CPUS
|
#define CONFIGURE_SMP_MAXIMUM_PROCESSORS NUM_CPUS
|
||||||
|
|
||||||
#define CONFIGURE_MAXIMUM_TASKS (NUM_CPUS*2)
|
#define CONFIGURE_MAXIMUM_TASKS (NUM_CPUS*2)
|
||||||
|
|||||||
Reference in New Issue
Block a user