summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-09 20:04:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-09 20:04:52 +0000
commit3fc076d7572c9be6d0b335759891f9b31720c4e6 (patch)
tree2fb8aa018b2011acf33c6e7176f89b2bd25ed663 /cpukit
parentenhanced printf statements (diff)
downloadrtems-3fc076d7572c9be6d0b335759891f9b31720c4e6.tar.bz2
added support for tracking thread cpu usage.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/src/thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c
index 18984b6d9a..954f6c2c2d 100644
--- a/cpukit/score/src/thread.c
+++ b/cpukit/score/src/thread.c
@@ -268,6 +268,8 @@ void _Thread_Dispatch( void )
_Thread_Executing = heir;
_ISR_Enable( level );
+ heir->ticks_executed++;
+
_User_extensions_Thread_switch( executing, heir );
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )