summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/bspsmp.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-14 14:00:38 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-17 13:09:49 +0200
commit39e51758c86754cef5ba4521c0c36578521f73d0 (patch)
treea87255c5c0592b876106da50b939dedd471b7d5a /cpukit/score/include/rtems/bspsmp.h
parentsmp: Delete RTEMS_BSP_SMP_CONTEXT_SWITCH_NECESSARY (diff)
downloadrtems-39e51758c86754cef5ba4521c0c36578521f73d0.tar.bz2
smp: Add and use _CPU_SMP_Get_current_processor()
Add and use _SMP_Get_current_processor() and rtems_smp_get_current_processor(). Delete bsp_smp_interrupt_cpu(). Change type of current processor index from int to uint32_t to match _SMP_Processor_count type.
Diffstat (limited to 'cpukit/score/include/rtems/bspsmp.h')
-rw-r--r--cpukit/score/include/rtems/bspsmp.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/cpukit/score/include/rtems/bspsmp.h b/cpukit/score/include/rtems/bspsmp.h
index b712c4fe95..57f5a7a458 100644
--- a/cpukit/score/include/rtems/bspsmp.h
+++ b/cpukit/score/include/rtems/bspsmp.h
@@ -70,16 +70,6 @@ extern "C" {
uint32_t bsp_smp_initialize( uint32_t configured_cpu_count );
/**
- * @brief Obtain current CPU index.
- *
- * This method is invoked by RTEMS when it needs to know the index
- * of the CPU it is executing on.
- *
- * @retval This method returns the current CPU index.
- */
-int bsp_smp_processor_id(void) RTEMS_COMPILER_PURE_ATTRIBUTE;
-
-/**
* @brief Generate an interprocessor broadcast interrupt.
*
* This method is invoked when RTEMS wants to let all of the other
@@ -106,19 +96,6 @@ void bsp_smp_interrupt_cpu(
);
/**
- * @brief Obtain CPU core number.
- *
- * This method is invoked by RTEMS when it needs to know which core
- * number it is executing on. This is used when it needs to perform
- * some action or bookkeeping and needs to distinguish itself from
- * the other cores. For example, it may need to realize it needs to
- * preempt a thread on another node.
- *
- * @retval This method returns the Id of the current CPU core.
- */
-int bsp_smp_processor_id( void );
-
-/**
* @brief Performs high-level initialization of a secondary processor and runs
* the application threads.
*
@@ -156,8 +133,6 @@ void rtems_smp_process_interrupt(void);
}
#endif
-#else
- #define bsp_smp_processor_id() 0
#endif
/**@}*/