ia64/xen-unstable

changeset 1731:7f9e7fa78545

bitkeeper revision 1.1062 (40eeb61foD5LNFQo1m7VdXuEO9IO_g)

Enable the various scheduler set functions - they were
all commented-out.
author mjw@wray-m-3.hpl.hp.com
date Fri Jul 09 15:13:35 2004 +0000 (2004-07-09)
parents 1ff36c572e07
children 3365c9a31041 cafda17c0350
files tools/python/xen/xend/XendNode.py
line diff
     1.1 --- a/tools/python/xen/xend/XendNode.py	Fri Jul 09 15:00:25 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendNode.py	Fri Jul 09 15:13:35 2004 +0000
     1.3 @@ -25,29 +25,22 @@ class XendNode:
     1.4          return 0
     1.5      
     1.6      def cpu_bvt_slice_set(self, ctx_allow):
     1.7 -        ret = 0
     1.8 -        #ret = self.xc.bvtsched_global_set(ctx_allow=slice)
     1.9 -        return ret
    1.10 +        return self.xc.bvtsched_global_set(ctx_allow=ctx_allow)
    1.11  
    1.12 -    def cpu_bvt_slice_get(self, ctx_allow):
    1.13 -        ret = 0
    1.14 -        #ret = self.xc.bvtsched_global_get()
    1.15 -        return ret
    1.16 +    def cpu_bvt_slice_get(self):
    1.17 +        return self.xc.bvtsched_global_get()
    1.18      
    1.19      def cpu_fbvt_slice_set(self, ctx_allow):
    1.20 -        ret = 0
    1.21 -        #ret = self.xc.bvtsched_global_set(ctx_allow=slice)
    1.22 -        return ret
    1.23 +        return self.xc.bvtsched_global_set(ctx_allow=ctx_allow)
    1.24  
    1.25 -    def cpu_fbvt_slice_get(self, ctx_allow):
    1.26 -        ret = 0
    1.27 -        #ret = self.xc.bvtsched_global_get()
    1.28 -        return ret
    1.29 +    def cpu_fbvt_slice_get(self):
    1.30 +        return self.xc.bvtsched_global_get()
    1.31      
    1.32      def cpu_rrobin_slice_set(self, slice):
    1.33 -        ret = 0
    1.34 -        #ret = self.xc.rrobin_global_set(slice)
    1.35 -        return ret
    1.36 +        return self.xc.rrobin_global_set(slice=slice)
    1.37 +
    1.38 +    def cpu_rrobin_slice_get(self):
    1.39 +        return self.xc.rrobin_global_get()
    1.40  
    1.41      def info(self):
    1.42          return self.nodeinfo() + self.physinfo()