[rtems-libbsd commit] ZONE(9): Disable uma_prealloc()

Sebastian Huber sebh at rtems.org
Fri May 15 13:50:21 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    4dab3a04bb9ef32bfb79fa0dee2400365c30431c
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=4dab3a04bb9ef32bfb79fa0dee2400365c30431c

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Apr  8 11:35:27 2015 +0200

ZONE(9): Disable uma_prealloc()

---

 freebsd/sys/vm/uma_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/freebsd/sys/vm/uma_core.c b/freebsd/sys/vm/uma_core.c
index f2045d3..1f79d28 100644
--- a/freebsd/sys/vm/uma_core.c
+++ b/freebsd/sys/vm/uma_core.c
@@ -3055,7 +3055,6 @@ uma_zone_set_obj(uma_zone_t zone, struct vm_object *obj, int count)
 	ZONE_UNLOCK(zone);
 	return (1);
 }
-#endif /* __rtems__ */
 
 /* See uma.h */
 void
@@ -3080,6 +3079,7 @@ uma_prealloc(uma_zone_t zone, int items)
 	}
 	ZONE_UNLOCK(zone);
 }
+#endif /* __rtems__ */
 
 /* See uma.h */
 u_int32_t *



More information about the vc mailing list