diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-19 17:16:58 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 16:46:00 +0200 |
commit | d566f33e67969fd9a5c1dfdfc868d7b3f5d6655e (patch) | |
tree | b6f4d68df9658524282cc999a2558561c322cd70 /cpukit/libcsupport/src/__times.c | |
parent | testsuites: Use _Thread_Get_executing() (diff) | |
download | rtems-d566f33e67969fd9a5c1dfdfc868d7b3f5d6655e.tar.bz2 |
libcsupport: Use _Thread_Get_executing()
Diffstat (limited to 'cpukit/libcsupport/src/__times.c')
-rw-r--r-- | cpukit/libcsupport/src/__times.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c index d941f933db..71eb4e20e9 100644 --- a/cpukit/libcsupport/src/__times.c +++ b/cpukit/libcsupport/src/__times.c @@ -70,7 +70,7 @@ clock_t _times( ); _Timestamp_Divide( - &_Thread_Executing->cpu_time_used, + &_Thread_Get_executing()->cpu_time_used, &per_tick, &ticks, &fractional_ticks @@ -78,7 +78,7 @@ clock_t _times( ptms->tms_utime = ticks; } #else - ptms->tms_utime = _Thread_Executing->cpu_time_used; + ptms->tms_utime = _Thread_Get_executing()->cpu_time_used; #endif ptms->tms_stime = ticks; ptms->tms_cutime = 0; |