diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-06-28 20:39:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-06-28 20:39:39 +0000 |
commit | 2f96c1ebef88c75757a1b1f7e76ec85cf2a5f78e (patch) | |
tree | 821650138c9a0eb3efd734a646e25f92f6815d6c /cpukit/libmisc/cpuuse | |
parent | 2011-06-28 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-2f96c1ebef88c75757a1b1f7e76ec85cf2a5f78e.tar.bz2 |
2011-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1826/cpukit
* libmisc/cpuuse/cpuusagereport.c, rtems/Makefile.am,
rtems/preinstall.am, rtems/include/rtems.h: Add SMP Helper methods to
Classic API.
* rtems/include/rtems/rtems/smp.h: New file.
Diffstat (limited to 'cpukit/libmisc/cpuuse')
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuusagereport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/cpuuse/cpuusagereport.c b/cpukit/libmisc/cpuuse/cpuusagereport.c index 4e2fe455e2..a0696ff6eb 100644 --- a/cpukit/libmisc/cpuuse/cpuusagereport.c +++ b/cpukit/libmisc/cpuuse/cpuusagereport.c @@ -49,7 +49,7 @@ } #else int cpu; - for ( cpu=0 ; cpu < _SMP_Processor_count ; cpu++ ) { + for ( cpu=0 ; cpu < rtems_smp_get_number_of_processors() ; cpu++ ) { Per_CPU_Control *p = &_Per_CPU_Information[cpu]; if ( p->executing->Object.id == the_thread->Object.id ) { *time_of_context_switch = p->time_of_last_context_switch; |