From a5ac9da30737a3aeb2dcb0462a4eba25cb525253 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 14 Mar 2014 10:17:34 +0100 Subject: score: Add and use thread get/set CPU functions --- cpukit/libmisc/cpuuse/cpuusagereport.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/libmisc/cpuuse/cpuusagereport.c') diff --git a/cpukit/libmisc/cpuuse/cpuusagereport.c b/cpukit/libmisc/cpuuse/cpuusagereport.c index fe7e2a401c..86b637707a 100644 --- a/cpukit/libmisc/cpuuse/cpuusagereport.c +++ b/cpukit/libmisc/cpuuse/cpuusagereport.c @@ -26,6 +26,7 @@ #include #include +#include #include #include @@ -43,7 +44,8 @@ #else /* FIXME: Locking */ if ( the_thread->is_executing ) { - *time_of_context_switch = the_thread->cpu->time_of_last_context_switch; + *time_of_context_switch = + _Thread_Get_CPU( the_thread )->time_of_last_context_switch; return true; } #endif -- cgit v1.2.3