Changeset 03c9f24 in rtems for testsuites/smptests/smpatomic01


Ignore:
Timestamp:
Apr 5, 2019, 6:03:12 AM (14 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.

File:
1 edited

Legend:

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

    r3c50c328 r03c9f24  
    488488   * by the system topology.
    489489   */
    490   cpu_self_index = rtems_get_current_processor();
     490  cpu_self_index = rtems_scheduler_get_processor();
    491491
    492492  /* Store release and load acquire test case */
     
    639639   * by the system topology.
    640640   */
    641   cpu_self_index = rtems_get_current_processor();
     641  cpu_self_index = rtems_scheduler_get_processor();
    642642
    643643  if (cpu_self_index == 0) {
     
    701701   * by the system topology.
    702702   */
    703   cpu_self_index = rtems_get_current_processor();
     703  cpu_self_index = rtems_scheduler_get_processor();
    704704
    705705  if (cpu_self_index % 2 == 0) {
Note: See TracChangeset for help on using the changeset viewer.