diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-06 15:44:11 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-06 15:44:11 +0000 |
commit | 5fa51853245aefdbc5827cb819359afe8f6e06ff (patch) | |
tree | a78d310dc6c0758bb53dd0222261660593278e3a /cpukit/score/src | |
parent | 2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-5fa51853245aefdbc5827cb819359afe8f6e06ff.tar.bz2 |
2008-06-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/__times.c, libmisc/cpuuse/cpuusagereport.c,
libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-task.c,
rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c,
rtems/src/ratemonperiod.c, score/include/rtems/score/thread.h,
score/src/threaddispatch.c, score/src/threadinitialize.c,
score/src/threadtickletimeslice.c: Add typedefs for cpu usage and
period timing statistics. Also renamed related variables and
structure members so they are the same whether you are using
nanosecond (e.g. struct timespec) or ticks (e.g. uint32_t)
granularity. This lays the groundwork for future cleanup.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/threaddispatch.c | 2 | ||||
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 2 | ||||
-rw-r--r-- | cpukit/score/src/threadtickletimeslice.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c index cddfb757a6..50bac5f4aa 100644 --- a/cpukit/score/src/threaddispatch.c +++ b/cpukit/score/src/threaddispatch.c @@ -108,7 +108,7 @@ void _Thread_Dispatch( void ) _Thread_Time_of_last_context_switch = uptime; } #else - heir->ticks_executed++; + heir->cpu_time_used++; #endif /* diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 7ef9125a46..2956cf42ed 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -211,7 +211,7 @@ boolean _Thread_Initialize( the_thread->cpu_time_used.tv_sec = 0; the_thread->cpu_time_used.tv_nsec = 0; #else - the_thread->ticks_executed = 0; + the_thread->cpu_time_used = 0; #endif /* diff --git a/cpukit/score/src/threadtickletimeslice.c b/cpukit/score/src/threadtickletimeslice.c index 41f08aa8d0..fbccfcad7c 100644 --- a/cpukit/score/src/threadtickletimeslice.c +++ b/cpukit/score/src/threadtickletimeslice.c @@ -53,7 +53,7 @@ void _Thread_Tickle_timeslice( void ) /* * Increment the number of ticks this thread has been executing */ - executing->ticks_executed++; + executing->cpu_time_used++; #endif /* |