From d566f33e67969fd9a5c1dfdfc868d7b3f5d6655e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 19 Jul 2013 17:16:58 +0200 Subject: libcsupport: Use _Thread_Get_executing() --- cpukit/libcsupport/src/__times.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libcsupport/src/__times.c') 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; -- cgit v1.2.3