Changeset 88575577 in rtems


Ignore:
Timestamp:
Apr 19, 2016, 12:14:31 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
242a05a
Parents:
d7a12be9
git-author:
Sebastian Huber <sebastian.huber@…> (04/19/16 12:14:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/21/16 05:29:40)
Message:

score: Optimize _Objects_Get_local()

Make the id the first parameter since usual callers get the object
identifier as the first parameter themself.

Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/spinlockimpl.h

    rd7a12be9 r88575577  
    8686
    8787  return (POSIX_Spinlock_Control *) _Objects_Get_local(
     88    *spinlock,
    8889    &_POSIX_Spinlock_Information,
    89     *spinlock,
    9090    lock_context
    9191  );
  • cpukit/posix/include/rtems/posix/timerimpl.h

    rd7a12be9 r88575577  
    9999{
    100100  return (POSIX_Timer_Control *) _Objects_Get_local(
     101    (Objects_Id) id,
    101102    &_POSIX_Timer_Information,
    102     (Objects_Id) id,
    103103    lock_context
    104104  );
  • cpukit/rtems/include/rtems/rtems/ratemonimpl.h

    rd7a12be9 r88575577  
    9191{
    9292  return (Rate_monotonic_Control *)
    93     _Objects_Get_local( &_Rate_monotonic_Information, id, lock_context );
     93    _Objects_Get_local( id, &_Rate_monotonic_Information, lock_context );
    9494}
    9595
  • cpukit/rtems/include/rtems/rtems/timerimpl.h

    rd7a12be9 r88575577  
    8989{
    9090  return (Timer_Control *) _Objects_Get_local(
     91    id,
    9192    &_Timer_Information,
    92     id,
    9393    lock_context
    9494  );
  • cpukit/score/include/rtems/score/objectimpl.h

    rd7a12be9 r88575577  
    630630 * previous interrupt state is restored.
    631631 *
     632 * @param id The object identifier.  This is the first parameter since usual
     633 *   callers get the object identifier as the first parameter themself.
    632634 * @param information The object class information block.
    633  * @param[in] id The object identifier.
    634  * @param[in] lock_context The interrupt lock context.
     635 * @param lock_context The interrupt lock context.
    635636 *
    636637 * @retval NULL No associated object exists.
     
    640641 */
    641642Objects_Control *_Objects_Get_local(
     643  Objects_Id                 id,
    642644  const Objects_Information *information,
    643   Objects_Id                 id,
    644645  ISR_lock_Context          *lock_context
    645646);
  • cpukit/score/src/objectgetlocal.c

    rd7a12be9 r88575577  
    2727
    2828Objects_Control *_Objects_Get_local(
     29  Objects_Id                 id,
    2930  const Objects_Information *information,
    30   Objects_Id                 id,
    3131  ISR_lock_Context          *lock_context
    3232)
Note: See TracChangeset for help on using the changeset viewer.