[PATCH 02/20] linux/smp.h: Avoid function call overhead

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jan 19 13:53:52 UTC 2018


---
 rtemsbsd/powerpc/include/linux/smp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtemsbsd/powerpc/include/linux/smp.h b/rtemsbsd/powerpc/include/linux/smp.h
index a9fac7041..bf8e60e3a 100644
--- a/rtemsbsd/powerpc/include/linux/smp.h
+++ b/rtemsbsd/powerpc/include/linux/smp.h
@@ -34,7 +34,7 @@
 extern "C" {
 #endif /* __cplusplus */
 
-#define smp_processor_id() ((int)rtems_get_current_processor())
+#define smp_processor_id() ((int)_SMP_Get_current_processor())
 
 typedef void (*smp_call_func_t)(void *arg);
 
-- 
2.12.3




More information about the devel mailing list