summaryrefslogtreecommitdiffstats
path: root/cpukit/libtest/testparallel.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-04-05 08:03:12 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-04-09 08:06:46 +0200
commit03c9f2406127b71ad5abdfd02af1609f8a67f012 (patch)
tree0da26b51a42fdcd2403bc12445ffed8066d27547 /cpukit/libtest/testparallel.c
parentscore: Add RTEMS_CONST (diff)
downloadrtems-03c9f2406127b71ad5abdfd02af1609f8a67f012.tar.bz2
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.
Diffstat (limited to 'cpukit/libtest/testparallel.c')
-rw-r--r--cpukit/libtest/testparallel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libtest/testparallel.c b/cpukit/libtest/testparallel.c
index 1182242a7b..ea805a3cf4 100644
--- a/cpukit/libtest/testparallel.c
+++ b/cpukit/libtest/testparallel.c
@@ -74,7 +74,7 @@ static void run_tests(
*/
rtems_interrupt_local_disable(level);
_SMP_barrier_Wait(&ctx->barrier, &bs, ctx->worker_count);
- worker_index = rtems_get_current_processor();
+ worker_index = rtems_scheduler_get_processor();
rtems_interrupt_local_enable(level);
_Assert(worker_index < ctx->worker_count);