gdunlap/sched-sim.hg

diff sim.h @ 2:1d7310217c5a

Add command-line options
author George Dunlap <gdunlap@xensource.com>
date Wed Oct 14 16:12:26 2009 +0100 (2009-10-14)
parents ec2d50e41437
children
line diff
     1.1 --- a/sim.h	Tue Oct 13 17:29:50 2009 +0100
     1.2 +++ b/sim.h	Wed Oct 14 16:12:26 2009 +0100
     1.3 @@ -3,6 +3,7 @@
     1.4  
     1.5  #include "stats.h"
     1.6  #include "workload.h"
     1.7 +#include "sched.h"
     1.8  
     1.9  enum runstate {
    1.10      RUNSTATE_RUNNING,
    1.11 @@ -44,18 +45,6 @@ struct vm
    1.12  
    1.13  };
    1.14  
    1.15 -struct sched_ops {
    1.16 -    void (*sched_init)(void);
    1.17 -    void (*vm_init)(int vid);
    1.18 -    void (*wake)(int time, struct vm* v);
    1.19 -    struct vm* (*schedule)(int time, int pid);
    1.20 -};
    1.21 -
    1.22 -struct scheduler {
    1.23 -    char *name;
    1.24 -    struct sched_ops ops;
    1.25 -};
    1.26 -
    1.27  #define MAX_PCPU 16
    1.28  struct global_pcpu_data {
    1.29      int count, idle;