Changeset ecabd384 in rtems for testsuites/smptests


Ignore:
Timestamp:
Jul 11, 2017, 7:51:43 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e7ee719f
Parents:
548d65a
git-author:
Sebastian Huber <sebastian.huber@…> (07/11/17 07:51:43)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/11/17 12:16:59)
Message:

rtems: Add rtems_scheduler_ident_by_processor_set

Update #3070.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpscheduler02/init.c

    r548d65a recabd384  
    135135
    136136  if (rtems_get_processor_count() > 1) {
     137    rtems_id scheduler_id;
    137138    rtems_id scheduler_b_id;
    138139    rtems_id task_id;
     140    cpu_set_t first_cpu;
    139141
    140142    sc = rtems_scheduler_ident(SCHED_B, &scheduler_b_id);
     
    153155
    154156    rtems_test_assert(rtems_get_current_processor() == 1);
     157
     158    CPU_ZERO(&first_cpu);
     159    CPU_SET(0, &first_cpu);
     160    sc = rtems_scheduler_ident_by_processor_set(
     161      sizeof(first_cpu),
     162      &first_cpu,
     163      &scheduler_id
     164    );
     165    rtems_test_assert(sc == RTEMS_INCORRECT_STATE);
    155166
    156167    sc = rtems_scheduler_add_processor(scheduler_a_id, 0);
Note: See TracChangeset for help on using the changeset viewer.