diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-05-31 21:25:53 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-05-31 21:25:53 +0000 |
commit | 91be1defc0b51b69f7c1270d4a1cc39b07f0d50c (patch) | |
tree | 5ef10f429d6a553699c4d14be349bb946fb0fbc4 /xen | |
parent | 84b3199c7847e50cb3d777127327674b21540801 (diff) | |
download | xen-91be1defc0b51b69f7c1270d4a1cc39b07f0d50c.tar.gz xen-91be1defc0b51b69f7c1270d4a1cc39b07f0d50c.tar.bz2 xen-91be1defc0b51b69f7c1270d4a1cc39b07f0d50c.zip |
bitkeeper revision 1.922 (40bba2e15V4MoAj5rcocyvcdX3A7jA)
sched_bvt.c:
BVT fixes.
Diffstat (limited to 'xen')
-rw-r--r-- | xen/common/sched_bvt.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/xen/common/sched_bvt.c b/xen/common/sched_bvt.c index a3ac2c80bc..776557bf00 100644 --- a/xen/common/sched_bvt.c +++ b/xen/common/sched_bvt.c @@ -170,7 +170,6 @@ void bvt_wake_up(struct task_struct *p) static void bvt_do_block(struct task_struct *p) { BVT_INFO(p)->warpback = 0; - __del_from_runqueue(p); } /* Control the scheduler. */ @@ -206,10 +205,10 @@ int bvt_adjdom(struct task_struct *p, struct bvt_dom_info *inf = BVT_INFO(p); - - printk("Get domain %lld bvt mcu_adv=%ld, warp=%ld, warpl=%ld, warpu=%ld\n", - p->domain, inf->mcu_advance, inf->warp, - inf->warpl, inf->warpu ); + DPRINTK("Get domain %lld bvt mcu_adv=%ld, warp=%ld, warpl=%ld," + " warpu=%ld\n", + p->domain, inf->mcu_advance, inf->warp, + inf->warpl, inf->warpu ); /* Sanity -- this can avoid divide-by-zero. */ if ( mcu_adv == 0 ) @@ -221,9 +220,10 @@ int bvt_adjdom(struct task_struct *p, inf->warpl = warpl; inf->warpu = warpu; - printk("Set domain %lld bvt mcu_adv=%ld, warp=%ld, warpl=%ld, warpu=%ld\n", - p->domain, inf->mcu_advance, inf->warp, - inf->warpl, inf->warpu ); + DPRINTK("Set domain %lld bvt mcu_adv=%ld, warp=%ld, warpl=%ld," + " warpu=%ld\n", + p->domain, inf->mcu_advance, inf->warp, + inf->warpl, inf->warpu ); spin_unlock_irqrestore(&schedule_lock[p->processor], flags); } @@ -277,8 +277,7 @@ static task_slice_t bvt_do_schedule(s_time_t now) __calc_evt(prev_inf); - if( __task_on_runqueue(prev)) - __del_from_runqueue(prev); + __del_from_runqueue(prev); if ( likely(prev->state == TASK_RUNNING) ) __add_to_runqueue_tail(prev); |