Changeset 5f7f469 in rtems


Ignore:
Timestamp:
May 4, 2015, 7:22:26 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
c07c85f
Parents:
d5a9c80
git-author:
Sebastian Huber <sebastian.huber@…> (05/04/15 07:22:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/19/15 10:00:43)
Message:

libcsupport: Avoid Giant lock in _times()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/__times.c

    rd5a9c80 r5f7f469  
    6767  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
    6868    {
    69       Timestamp_Control per_tick;
    70       uint32_t          ticks_of_executing;
    71       uint32_t          fractional_ticks;
     69      Timestamp_Control  per_tick;
     70      uint32_t           ticks_of_executing;
     71      uint32_t           fractional_ticks;
     72      Per_CPU_Control   *cpu_self;
    7273
    7374      _Timestamp_Set(
     
    7980      );
    8081
    81       _Thread_Disable_dispatch();
     82      cpu_self = _Thread_Dispatch_disable();
    8283      executing = _Thread_Executing;
    8384      _Thread_Update_cpu_time_used(
     
    9192        &fractional_ticks
    9293      );
    93       _Thread_Enable_dispatch();
     94      _Thread_Dispatch_enable( cpu_self );
    9495      ptms->tms_utime = ticks_of_executing * us_per_tick;
    9596    }
Note: See TracChangeset for help on using the changeset viewer.