[rtems-libbsd commit] UMA(9): Disable unused uma_large_malloc()
Sebastian Huber
sebh at rtems.org
Tue Sep 30 07:41:16 UTC 2014
Module: rtems-libbsd
Branch: master
Commit: bd2e540dcac0238bb0b65fcf33b69e5e29bf6798
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=bd2e540dcac0238bb0b65fcf33b69e5e29bf6798
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Sep 29 08:40:22 2014 +0200
UMA(9): Disable unused uma_large_malloc()
---
freebsd/sys/vm/uma_core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/freebsd/sys/vm/uma_core.c b/freebsd/sys/vm/uma_core.c
index 69db9df..042e313 100644
--- a/freebsd/sys/vm/uma_core.c
+++ b/freebsd/sys/vm/uma_core.c
@@ -3157,6 +3157,7 @@ uma_zone_exhausted_nolock(uma_zone_t zone)
return (zone->uz_flags & UMA_ZFLAG_FULL);
}
+#ifndef __rtems__
void *
uma_large_malloc(int size, int wait)
{
@@ -3184,12 +3185,11 @@ uma_large_malloc(int size, int wait)
void
uma_large_free(uma_slab_t slab)
{
-#ifndef __rtems__
vsetobj((vm_offset_t)slab->us_data, kmem_object);
-#endif /* __rtems__ */
page_free(slab->us_data, slab->us_size, slab->us_flags);
zone_free_item(slabzone, slab, NULL, SKIP_NONE, ZFREE_STATFREE);
}
+#endif /* __rtems__ */
void
uma_print_stats(void)
More information about the vc
mailing list