gdunlap/sched-sim.hg

changeset 10:a0da04ca71ee

c01: Make functions private
author George Dunlap <gdunlap@xensource.com>
date Tue Oct 20 18:12:57 2009 +0100 (2009-10-20)
parents 0ec40a1605a3
children 31f36108fc43
files sched_credit01.c
line diff
     1.1 --- a/sched_credit01.c	Tue Oct 20 18:01:15 2009 +0100
     1.2 +++ b/sched_credit01.c	Tue Oct 20 18:12:57 2009 +0100
     1.3 @@ -40,7 +40,7 @@ struct {
     1.4  
     1.5  
     1.6  
     1.7 -void reset_credit(int time)
     1.8 +static void reset_credit(int time)
     1.9  {
    1.10      int i;
    1.11      for ( i=0; i<=sched_priv.max_vm; i++)
    1.12 @@ -51,12 +51,12 @@ void reset_credit(int time)
    1.13      /* No need to resort runq, as everyone's credit is now zero */
    1.14  }
    1.15  
    1.16 -void dump_credit(int time, struct sched_vm *svm)
    1.17 +static void dump_credit(int time, struct sched_vm *svm)
    1.18  {
    1.19      printf("credit v%d %d %d\n", svm->vid, time, svm->credit);
    1.20  }
    1.21  
    1.22 -void burn_credit(struct sched_vm *svm, int time)
    1.23 +static void burn_credit(struct sched_vm *svm, int time)
    1.24  {
    1.25      ASSERT(time >= svm->start_time);
    1.26  
    1.27 @@ -66,7 +66,7 @@ void burn_credit(struct sched_vm *svm, i
    1.28      dump_credit(time, svm);
    1.29  }
    1.30  
    1.31 -int calc_timer(struct sched_vm *svm)
    1.32 +static int calc_timer(struct sched_vm *svm)
    1.33  {
    1.34      int time = MAX_TIMER;
    1.35  
    1.36 @@ -90,7 +90,7 @@ int calc_timer(struct sched_vm *svm)
    1.37      return time;
    1.38  }
    1.39  
    1.40 -void runq_insert(struct sched_vm *svm)
    1.41 +static void runq_insert(struct sched_vm *svm)
    1.42  {
    1.43      struct list_head *iter;
    1.44      int pos = 0;