ia64/xen-unstable

changeset 208:2203f6130483

bitkeeper revision 1.69 (3e53c54cEL529pxHNKFYKzvzVGQhXw)

schedule.c:
Fix so we don't schedule idle domain unnecessarily.
author kaf24@labyrinth.cl.cam.ac.uk
date Wed Feb 19 17:56:28 2003 +0000 (2003-02-19)
parents 39dc127a1ffe
children 9d5263d6451f
files xen-2.4.16/common/schedule.c
line diff
     1.1 --- a/xen-2.4.16/common/schedule.c	Wed Feb 19 17:26:26 2003 +0000
     1.2 +++ b/xen-2.4.16/common/schedule.c	Wed Feb 19 17:56:28 2003 +0000
     1.3 @@ -26,6 +26,7 @@
     1.4  #include <xeno/event.h>
     1.5  #include <xeno/time.h>
     1.6  #include <xeno/ac_timer.h>
     1.7 +#include <xeno/interrupt.h>
     1.8  
     1.9  #undef SCHEDULER_TRACE
    1.10  #ifdef SCHEDULER_TRACE
    1.11 @@ -224,7 +225,7 @@ asmlinkage void schedule(void)
    1.12  
    1.13      spin_lock_irq(&schedule_data[this_cpu].lock);
    1.14  
    1.15 -    /*ASSERT(!in_interrupt());*/
    1.16 +    ASSERT(!in_interrupt());
    1.17      ASSERT(__task_on_runqueue(prev));
    1.18  
    1.19  	__move_last_runqueue(prev);
    1.20 @@ -247,7 +248,7 @@ asmlinkage void schedule(void)
    1.21      list_for_each(tmp, &schedule_data[smp_processor_id()].runqueue) {
    1.22          p = list_entry(tmp, struct task_struct, run_list);
    1.23          next = p;
    1.24 -        break;
    1.25 +        if ( !is_idle_task(next) ) break;
    1.26      }
    1.27  
    1.28      prev->has_cpu = 0;