ia64/xen-unstable
changeset 676:00f3a45626b0
bitkeeper revision 1.391 (3f316acaX8G5OlQyJ0l_ZX0sG-sl-A)
schedule.c, xi_sched_domain.c:
Fix setting of scheduler parameters from dom0.
schedule.c, xi_sched_domain.c:
Fix setting of scheduler parameters from dom0.
author | kaf24@scramble.cl.cam.ac.uk |
---|---|
date | Wed Aug 06 20:53:30 2003 +0000 (2003-08-06) |
parents | 7678e3defee2 |
children | 3946af49a538 |
files | tools/internal/xi_sched_domain.c xen/common/schedule.c |
line diff
1.1 --- a/tools/internal/xi_sched_domain.c Thu Jul 31 09:49:02 2003 +0000 1.2 +++ b/tools/internal/xi_sched_domain.c Wed Aug 06 20:53:30 2003 +0000 1.3 @@ -21,10 +21,10 @@ int main(int argc, char **argv) 1.4 1.5 op.cmd = DOM0_ADJUSTDOM; 1.6 op.u.adjustdom.domain = atoi(argv[1]); 1.7 - op.u.adjustdom.mcu_adv = atol(argv[1]); 1.8 - op.u.adjustdom.warp = atol(argv[1]); 1.9 - op.u.adjustdom.warpl = atol(argv[1]); 1.10 - op.u.adjustdom.warpu = atol(argv[1]); 1.11 + op.u.adjustdom.mcu_adv = atol(argv[2]); 1.12 + op.u.adjustdom.warp = atol(argv[3]); 1.13 + op.u.adjustdom.warpl = atol(argv[4]); 1.14 + op.u.adjustdom.warpu = atol(argv[5]); 1.15 if ( do_dom0_op(&op) < 0 ) 1.16 return 1; 1.17
2.1 --- a/xen/common/schedule.c Thu Jul 31 09:49:02 2003 +0000 2.2 +++ b/xen/common/schedule.c Wed Aug 06 20:53:30 2003 +0000 2.3 @@ -208,7 +208,6 @@ long do_yield(void) 2.4 ****************************************************************************/ 2.5 long sched_bvtctl(unsigned long c_allow) 2.6 { 2.7 - printk("sched: bvtctl %lu\n", c_allow); 2.8 ctx_allow = c_allow; 2.9 return 0; 2.10 } 2.11 @@ -221,8 +220,9 @@ long sched_adjdom(int dom, unsigned long 2.12 { 2.13 struct task_struct *p; 2.14 2.15 - printk("sched: adjdom %02d %lu %lu %lu %lu\n", 2.16 - dom, mcu_adv, warp, warpl, warpu); 2.17 + /* Sanity -- this can avoid divide-by-zero. */ 2.18 + if ( mcu_adv == 0 ) 2.19 + return -EINVAL; 2.20 2.21 p = find_domain_by_id(dom); 2.22 if ( p == NULL )