Changeset 2f96c1eb in rtems


Ignore:
Timestamp:
Jun 28, 2011, 8:39:39 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
b6afcb6
Parents:
c5a4332
Message:

2011-06-28 Joel Sherrill <joel.sherrill@…>

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.
Location:
cpukit
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rc5a4332 r2f96c1eb  
     12011-06-28      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        PR 1826/cpukit
     4        * libmisc/cpuuse/cpuusagereport.c, rtems/Makefile.am,
     5        rtems/preinstall.am, rtems/include/rtems.h: Add SMP Helper methods to
     6        Classic API.
     7        * rtems/include/rtems/rtems/smp.h: New file.
     8
    192011-06-28      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • cpukit/libmisc/cpuuse/cpuusagereport.c

    rc5a4332 r2f96c1eb  
    5050    #else
    5151      int  cpu;
    52       for ( cpu=0 ; cpu < _SMP_Processor_count ; cpu++ ) {
     52      for ( cpu=0 ; cpu < rtems_smp_get_number_of_processors() ; cpu++ ) {
    5353        Per_CPU_Control *p = &_Per_CPU_Information[cpu];
    5454        if ( p->executing->Object.id == the_thread->Object.id ) {
  • cpukit/rtems/Makefile.am

    rc5a4332 r2f96c1eb  
    5656include_rtems_rtems_HEADERS += include/rtems/rtems/signalmp.h
    5757include_rtems_rtems_HEADERS += include/rtems/rtems/taskmp.h
     58endif
     59
     60if HAS_SMP
     61include_rtems_rtems_HEADERS += include/rtems/rtems/smp.h
    5862endif
    5963
  • cpukit/rtems/include/rtems.h

    rc5a4332 r2f96c1eb  
    7575#include <rtems/rtems/mp.h>
    7676#endif
     77#if defined(RTEMS_SMP)
     78#include <rtems/rtems/smp.h>
     79#endif
     80
    7781
    7882#include <rtems/rtems/support.h>
  • cpukit/rtems/preinstall.am

    rc5a4332 r2f96c1eb  
    165165PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/taskmp.h
    166166endif
     167if HAS_SMP
     168$(PROJECT_INCLUDE)/rtems/rtems/smp.h: include/rtems/rtems/smp.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp)
     169        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/smp.h
     170PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/smp.h
     171endif
    167172$(PROJECT_INCLUDE)/rtems/rtems/asr.inl: inline/rtems/rtems/asr.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp)
    168173        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/asr.inl
Note: See TracChangeset for help on using the changeset viewer.