summaryrefslogtreecommitdiffstats
path: root/cpukit/libtest/t-test-rtems-measure.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/t-test-rtems-measure.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/t-test-rtems-measure.c')
-rw-r--r--cpukit/libtest/t-test-rtems-measure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libtest/t-test-rtems-measure.c b/cpukit/libtest/t-test-rtems-measure.c
index 207aef7afa..242855f19f 100644
--- a/cpukit/libtest/t-test-rtems-measure.c
+++ b/cpukit/libtest/t-test-rtems-measure.c
@@ -115,7 +115,7 @@ load_worker(rtems_task_argument arg)
chunk = lctx->chunk;
chunk_size = ctx->chunk_size;
cache_line_size = ctx->cache_line_size;
- token = (unsigned int)rtems_get_current_processor();
+ token = (unsigned int)rtems_scheduler_get_processor();
token = dirty_data_cache(chunk, chunk_size, cache_line_size, token);
wakeup_master(ctx);