Changeset b049b40 in rtems-libbsd


Ignore:
Timestamp:
May 31, 2012, 7:49:12 PM (8 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, 46b3858b27d78e14a220f8d251fd7ab28a5244f4, freebsd-9.3, 792d56bd33346adadf8b95dea2d2ed09f9e347e7
Children:
1bfe311
Parents:
569ce65
Message:

Added initialization needed by Nics into uma_core.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/vm/uma_core.c

    r569ce65 rb049b40  
    5555/* I should really use ktr.. */
    5656/*
     57*/
    5758#define UMA_DEBUG 1
    5859#define UMA_DEBUG_ALLOC 1
    5960#define UMA_DEBUG_ALLOC_1 1
    60 */
    6161
    6262#include <freebsd/local/opt_ddb.h>
     
    7676#include <freebsd/sys/sbuf.h>
    7777#include <freebsd/sys/smp.h>
    78 #ifndef __rtems__
    7978#include <freebsd/sys/vmmeter.h>
    80 #endif /* __rtems__ */
    8179
    8280#include <freebsd/vm/vm.h>
     
    238236static int hash_expand(struct uma_hash *, struct uma_hash *);
    239237static void hash_free(struct uma_hash *hash);
    240 #ifndef __rtems__
    241238static void uma_timeout(void *);
    242239static void uma_startup3(void);
    243 #endif /* __rtems__ */
    244240static void *zone_alloc_item(uma_zone_t, void *, int);
    245241static void zone_free_item(uma_zone_t, void *, void *, enum zfreeskip,
    246242    int);
    247 #ifndef __rtems__
    248243static void bucket_enable(void);
    249 #endif /* __rtems__ */
    250244static void bucket_init(void);
    251245static uma_bucket_t bucket_alloc(int, int);
     
    266260static int sysctl_vm_zone_count(SYSCTL_HANDLER_ARGS);
    267261static int sysctl_vm_zone_stats(SYSCTL_HANDLER_ARGS);
     262#endif
    268263
    269264SYSINIT(uma_startup3, SI_SUB_VM_CONF, SI_ORDER_SECOND, uma_startup3, NULL);
    270265
     266#ifndef __rtems__
    271267SYSCTL_PROC(_vm, OID_AUTO, zone_count, CTLFLAG_RD|CTLTYPE_INT,
    272268    0, 0, sysctl_vm_zone_count, "I", "Number of UMA zones");
     
    274270SYSCTL_PROC(_vm, OID_AUTO, zone_stats, CTLFLAG_RD|CTLTYPE_STRUCT,
    275271    0, 0, sysctl_vm_zone_stats, "s,struct uma_type_header", "Zone Stats");
     272#endif /* __rtems__ */
    276273
    277274/*
     
    282279bucket_enable(void)
    283280{
     281#ifndef __rtems__
    284282        if (cnt.v_free_count < cnt.v_free_min)
    285283                bucketdisable = 1;
    286284        else
     285#endif /* __rtems__ */
    287286                bucketdisable = 0;
    288287}
    289 #endif /* __rtems__ */
    290288
    291289/*
     
    393391}
    394392
    395 #ifndef __rtems__
    396393/*
    397394 * Routine called by timeout which is used to fire off some time interval
     
    413410        callout_reset(&uma_callout, UMA_TIMEOUT * hz, uma_timeout, NULL);
    414411}
    415 #endif /* __rtems__ */
    416412
    417413/*
     
    18151811#endif
    18161812}
     1813#endif /* __rtems__ */
    18171814
    18181815/*
     
    18331830#endif
    18341831}
    1835 #endif /* __rtems__ */
    18361832
    18371833static uma_keg_t
Note: See TracChangeset for help on using the changeset viewer.