summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/cpuuse
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-14 10:17:34 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-31 08:29:42 +0200
commita5ac9da30737a3aeb2dcb0462a4eba25cb525253 (patch)
tree7bb4abcb4d350aa9618be52ceb942f63835bc6fc /cpukit/libmisc/cpuuse
parentscore: Add _Scheduler_Change_priority_if_higher() (diff)
downloadrtems-a5ac9da30737a3aeb2dcb0462a4eba25cb525253.tar.bz2
score: Add and use thread get/set CPU functions
Diffstat (limited to 'cpukit/libmisc/cpuuse')
-rw-r--r--cpukit/libmisc/cpuuse/cpuusagereport.c4
1 files changed, 3 insertions, 1 deletions
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 <rtems/cpuuse.h>
#include <rtems/score/objectimpl.h>
+#include <rtems/score/threadimpl.h>
#include <rtems/score/todimpl.h>
#include <rtems/score/watchdogimpl.h>
@@ -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