summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 15:10:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 16:17:00 +0200
commite266d134ebf6f7b7722fffe23c3b4ad142001452 (patch)
tree7e43e93706be3da460331353b87e58cbb6a9833c /cpukit/score
parentscore: Rename _Objects_Get_local() (diff)
downloadrtems-e266d134ebf6f7b7722fffe23c3b4ad142001452.tar.bz2
Replace *_Get_interrupt_disable() with *_Get()
Uniformly use *_Get() to get an object by identifier with a lock context.
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/include/rtems/score/threadimpl.h2
-rw-r--r--cpukit/score/src/mpci.c2
-rw-r--r--cpukit/score/src/schedulercbsattachthread.c2
-rw-r--r--cpukit/score/src/schedulercbsdetachthread.c2
-rw-r--r--cpukit/score/src/schedulercbsgetexecutiontime.c2
-rw-r--r--cpukit/score/src/schedulercbsgetremainingbudget.c2
-rw-r--r--cpukit/score/src/threadget.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h
index 66b655d62d..c2ed6eef7b 100644
--- a/cpukit/score/include/rtems/score/threadimpl.h
+++ b/cpukit/score/include/rtems/score/threadimpl.h
@@ -582,7 +582,7 @@ RTEMS_INLINE_ROUTINE Objects_Information *_Thread_Get_objects_information(
*
* @see _Objects_Get().
*/
-Thread_Control *_Thread_Get_interrupt_disable(
+Thread_Control *_Thread_Get(
Objects_Id id,
ISR_lock_Context *lock_context
);
diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c
index 8eec2782c0..26adc9678d 100644
--- a/cpukit/score/src/mpci.c
+++ b/cpukit/score/src/mpci.c
@@ -295,7 +295,7 @@ Thread_Control *_MPCI_Process_response (
ISR_lock_Context lock_context;
Thread_Control *the_thread;
- the_thread = _Thread_Get_interrupt_disable( the_packet->id, &lock_context );
+ the_thread = _Thread_Get( the_packet->id, &lock_context );
_Assert( the_thread != NULL );
/*
diff --git a/cpukit/score/src/schedulercbsattachthread.c b/cpukit/score/src/schedulercbsattachthread.c
index 49162f6620..faabbbba8d 100644
--- a/cpukit/score/src/schedulercbsattachthread.c
+++ b/cpukit/score/src/schedulercbsattachthread.c
@@ -45,7 +45,7 @@ int _Scheduler_CBS_Attach_thread (
return SCHEDULER_CBS_ERROR_FULL;
}
- the_thread = _Thread_Get_interrupt_disable( task_id, &lock_context );
+ the_thread = _Thread_Get( task_id, &lock_context );
if ( the_thread == NULL ) {
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
diff --git a/cpukit/score/src/schedulercbsdetachthread.c b/cpukit/score/src/schedulercbsdetachthread.c
index 872d4b8df8..6df0f2df3a 100644
--- a/cpukit/score/src/schedulercbsdetachthread.c
+++ b/cpukit/score/src/schedulercbsdetachthread.c
@@ -46,7 +46,7 @@ int _Scheduler_CBS_Detach_thread (
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
}
- the_thread = _Thread_Get_interrupt_disable( task_id, &lock_context );
+ the_thread = _Thread_Get( task_id, &lock_context );
if ( the_thread == NULL ) {
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
diff --git a/cpukit/score/src/schedulercbsgetexecutiontime.c b/cpukit/score/src/schedulercbsgetexecutiontime.c
index a16d297b48..608560bf54 100644
--- a/cpukit/score/src/schedulercbsgetexecutiontime.c
+++ b/cpukit/score/src/schedulercbsgetexecutiontime.c
@@ -47,7 +47,7 @@ int _Scheduler_CBS_Get_execution_time (
return SCHEDULER_CBS_OK;
}
- the_thread = _Thread_Get_interrupt_disable( server->task_id, &lock_context );
+ the_thread = _Thread_Get( server->task_id, &lock_context );
if ( the_thread != NULL ) {
*exec_time = server->parameters.budget - the_thread->cpu_time_budget;
diff --git a/cpukit/score/src/schedulercbsgetremainingbudget.c b/cpukit/score/src/schedulercbsgetremainingbudget.c
index 947a811bce..46049bf2cd 100644
--- a/cpukit/score/src/schedulercbsgetremainingbudget.c
+++ b/cpukit/score/src/schedulercbsgetremainingbudget.c
@@ -45,7 +45,7 @@ int _Scheduler_CBS_Get_remaining_budget (
return SCHEDULER_CBS_OK;
}
- the_thread = _Thread_Get_interrupt_disable( server->task_id, &lock_context );
+ the_thread = _Thread_Get( server->task_id, &lock_context );
if ( the_thread != NULL ) {
*remaining_budget = the_thread->cpu_time_budget;
diff --git a/cpukit/score/src/threadget.c b/cpukit/score/src/threadget.c
index 61dce7d926..f363f9f204 100644
--- a/cpukit/score/src/threadget.c
+++ b/cpukit/score/src/threadget.c
@@ -21,7 +21,7 @@
#include <rtems/score/threadimpl.h>
-Thread_Control *_Thread_Get_interrupt_disable(
+Thread_Control *_Thread_Get(
Objects_Id id,
ISR_lock_Context *lock_context
)