[rtems commit] score: Remove unused SMP_MESSAGE_TEST
Sebastian Huber
sebh at rtems.org
Tue May 21 04:25:00 UTC 2019
Module: rtems
Branch: master
Commit: bf867c55377aaa223f92016f32e8e5f8d7063a52
Changeset: http://git.rtems.org/rtems/commit/?id=bf867c55377aaa223f92016f32e8e5f8d7063a52
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sun Apr 28 14:15:45 2019 +0200
score: Remove unused SMP_MESSAGE_TEST
All uses were replaced by per-processor jobs.
---
cpukit/include/rtems/score/smpimpl.h | 32 +-------------------------------
cpukit/score/src/smp.c | 2 --
2 files changed, 1 insertion(+), 33 deletions(-)
diff --git a/cpukit/include/rtems/score/smpimpl.h b/cpukit/include/rtems/score/smpimpl.h
index 1b78416..c0fe7a0 100644
--- a/cpukit/include/rtems/score/smpimpl.h
+++ b/cpukit/include/rtems/score/smpimpl.h
@@ -44,18 +44,11 @@ extern "C" {
#define SMP_MESSAGE_SHUTDOWN 0x1UL
/**
- * @brief SMP message to request a test handler invocation.
- *
- * @see _SMP_Send_message().
- */
-#define SMP_MESSAGE_TEST 0x2UL
-
-/**
* @brief SMP message to perform per-processor jobs.
*
* @see _SMP_Send_message().
*/
-#define SMP_MESSAGE_PERFORM_JOBS 0x4UL
+#define SMP_MESSAGE_PERFORM_JOBS 0x2UL
/**
* @brief SMP fatal codes.
@@ -136,25 +129,6 @@ void _SMP_Start_multitasking_on_secondary_processor(
Per_CPU_Control *cpu_self
) RTEMS_NO_RETURN;
-typedef void ( *SMP_Test_message_handler )( Per_CPU_Control *cpu_self );
-
-extern SMP_Test_message_handler _SMP_Test_message_handler;
-
-/**
- * @brief Sets the handler for test messages.
- *
- * This handler can be used to test the inter-processor interrupt
- * implementation.
- *
- * @param handler The handler for text messages.
- */
-static inline void _SMP_Set_test_message_handler(
- SMP_Test_message_handler handler
-)
-{
- _SMP_Test_message_handler = handler;
-}
-
/**
* @brief Interrupts handler for inter-processor interrupts.
*
@@ -186,10 +160,6 @@ static inline long unsigned _SMP_Inter_processor_interrupt_handler(
/* does not continue past here */
}
- if ( ( message & SMP_MESSAGE_TEST ) != 0 ) {
- ( *_SMP_Test_message_handler )( cpu_self );
- }
-
if ( ( message & SMP_MESSAGE_PERFORM_JOBS ) != 0 ) {
_Per_CPU_Perform_jobs( cpu_self );
}
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index 17d6c8b..306d1ea 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -252,5 +252,3 @@ void _SMP_Send_message_multicast(
}
}
}
-
-SMP_Test_message_handler _SMP_Test_message_handler;
More information about the vc
mailing list