[rtems-libbsd commit] ZONE(9): Avoid function call overhead
Sebastian Huber
sebh at rtems.org
Fri Jan 19 13:52:14 UTC 2018
Module: rtems-libbsd
Branch: master
Commit: ea121a0c59373e50e0409e9158a164b9ff531cae
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=ea121a0c59373e50e0409e9158a164b9ff531cae
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jan 16 13:06:39 2018 +0100
ZONE(9): Avoid function call overhead
---
freebsd/sys/vm/uma_core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/freebsd/sys/vm/uma_core.c b/freebsd/sys/vm/uma_core.c
index 6c85b0e..fbae47c 100644
--- a/freebsd/sys/vm/uma_core.c
+++ b/freebsd/sys/vm/uma_core.c
@@ -99,12 +99,14 @@ __FBSDID("$FreeBSD$");
#include <ddb/ddb.h>
#ifdef __rtems__
#ifdef RTEMS_SMP
+ #include <rtems/score/smp.h>
+
/*
* It is essential that we have a per-processor cache, otherwise the
* critical_enter()/critical_exit() protection would be insufficient.
*/
#undef curcpu
- #define curcpu rtems_get_current_processor()
+ #define curcpu _SMP_Get_current_processor()
#undef mp_maxid
#define mp_maxid (rtems_get_processor_count() - 1)
#define SMP
More information about the vc
mailing list