Changeset 03c9f24 in rtems for bsps


Ignore:
Timestamp:
Apr 5, 2019, 6:03:12 AM (8 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f9219db
Parents:
3c50c328
git-author:
Sebastian Huber <sebastian.huber@…> (04/05/19 06:03:12)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/09/19 06:06:46)
Message:

rtems: Add rtems_scheduler_get_processor()

Add rtems_scheduler_get_processor() as a replacement for
rtems_get_current_processor(). The rtems_get_current_processor() is a
bit orphaned. Adopt it by the Scheduler Manager. This is in line with
the glibc sched_getcpu() function.

Deprecate rtems_get_current_processor().

Update #3731.

Location:
bsps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/powerpc/qoriq/start/bsprestart.c

    r3c50c328 r03c9f24  
    7070  _SMP_barrier_Wait(&restart_barrier, &bs, _SMP_Processor_count);
    7171
    72   cpu_self_index = rtems_get_current_processor();
     72  cpu_self_index = rtems_scheduler_get_processor();
    7373  thread_index = cpu_self_index % QORIQ_THREAD_COUNT;
    7474
  • bsps/sparc/leon3/start/bspclean.c

    r3c50c328 r03c9f24  
    4949       */
    5050      uint32_t max_wait = 1234567;
    51       uint32_t self_cpu = rtems_get_current_processor();
     51      uint32_t self_cpu = rtems_scheduler_get_processor();
    5252      uint32_t cpu_count = rtems_get_processor_count();
    5353      uint32_t halt_mask = 0;
Note: See TracChangeset for help on using the changeset viewer.