From 0d362ff397a42ec2fdae258a7cc61a8c07ffd8b5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 23 Jul 2018 14:54:51 +0200 Subject: score: _SMP_Inter_processor_interrupt_handler() Pass current processor control via parameter since it may be already available at the caller side. --- cpukit/include/rtems/score/smpimpl.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cpukit/include/rtems/score/smpimpl.h') diff --git a/cpukit/include/rtems/score/smpimpl.h b/cpukit/include/rtems/score/smpimpl.h index 48e6a12498..fd92f655c7 100644 --- a/cpukit/include/rtems/score/smpimpl.h +++ b/cpukit/include/rtems/score/smpimpl.h @@ -165,12 +165,11 @@ void _SMP_Multicast_actions_process( void ); * * @return The received message. */ -static inline long unsigned _SMP_Inter_processor_interrupt_handler( void ) +static inline long unsigned _SMP_Inter_processor_interrupt_handler( + Per_CPU_Control *cpu_self +) { - Per_CPU_Control *cpu_self; - unsigned long message; - - cpu_self = _Per_CPU_Get(); + unsigned long message; /* * In the common case the inter-processor interrupt is issued to carry out a -- cgit v1.2.3