[rtems-libbsd commit] linux/smp.h: Avoid function call overhead
Sebastian Huber
sebh at rtems.org
Tue Jan 23 13:57:04 UTC 2018
Module: rtems-libbsd
Branch: master
Commit: 583216ab227f0fa9dbcbbaa9858dd8299234f163
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=583216ab227f0fa9dbcbbaa9858dd8299234f163
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jan 16 13:07:36 2018 +0100
linux/smp.h: Avoid function call overhead
Update #3277.
---
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 a9fac70..bf8e60e 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);
More information about the vc
mailing list