debuggers.hg

diff xen/common/sched_atropos.c @ 3658:0ef6e8e6e85d

bitkeeper revision 1.1159.212.71 (4200f0afX_JumfbEHQex6TdFENULMQ)

Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
author iap10@labyrinth.cl.cam.ac.uk
date Wed Feb 02 15:24:31 2005 +0000 (2005-02-02)
parents 51052c8b6456 f98fa170a9f4
children bbe8541361dd 4294cfa9fad3
line diff
     1.1 --- a/xen/common/sched_atropos.c	Wed Feb 02 09:38:32 2005 +0000
     1.2 +++ b/xen/common/sched_atropos.c	Wed Feb 02 15:24:31 2005 +0000
     1.3 @@ -69,8 +69,6 @@ struct at_cpu_info
     1.4  
     1.5  static void at_dump_cpu_state(int cpu);
     1.6  
     1.7 -static xmem_cache_t *dom_info_cache;
     1.8 -
     1.9  static inline void __add_to_runqueue_head(struct domain *d)
    1.10  {
    1.11      list_add(RUNLIST(d), RUNQ(d->processor));
    1.12 @@ -173,7 +171,7 @@ static int at_alloc_task(struct domain *
    1.13  {
    1.14      ASSERT(p != NULL);
    1.15      
    1.16 -    p->sched_priv = xmem_cache_alloc(dom_info_cache);
    1.17 +    p->sched_priv = xmalloc(struct at_dom_info);
    1.18      if ( p->sched_priv == NULL )
    1.19          return -1;
    1.20      
    1.21 @@ -558,10 +556,6 @@ static int at_init_scheduler()
    1.22          INIT_LIST_HEAD(RUNQ(i));
    1.23      }
    1.24  
    1.25 -    dom_info_cache = xmem_cache_create("Atropos dom info",
    1.26 -                                       sizeof(struct at_dom_info),
    1.27 -                                       0, 0, NULL, NULL);
    1.28 -
    1.29      return 0;
    1.30  }
    1.31  
    1.32 @@ -649,7 +643,7 @@ static int at_adjdom(struct domain *p, s
    1.33  /* free memory associated with a task */
    1.34  static void at_free_task(struct domain *p)
    1.35  {
    1.36 -    xmem_cache_free( dom_info_cache, DOM_INFO(p) );
    1.37 +    xfree( DOM_INFO(p) );
    1.38  }
    1.39  
    1.40