summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-16 13:06:39 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-19 14:51:51 +0100
commitea121a0c59373e50e0409e9158a164b9ff531cae (patch)
treebd0d69d0fe6a1e801079dffae5e37094131dbab1
parent4e17f143deaa586a886c4efd5d5a9b9c1e8f9c0d (diff)
ZONE(9): Avoid function call overhead
-rw-r--r--freebsd/sys/vm/uma_core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/freebsd/sys/vm/uma_core.c b/freebsd/sys/vm/uma_core.c
index 6c85b0e8..fbae47cb 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