direct-io.hg

changeset 307:ead63ee9164e

bitkeeper revision 1.129 (3e720a12Sz1DYuAUT-vz6ACn41efKA)

removed compile warning and removed debug check
author rn@wyvis.research.intel-research.net
date Fri Mar 14 16:57:54 2003 +0000 (2003-03-14)
parents 65d3d3ac118c
children 6bfee34e9107
files xen/common/schedule.c
line diff
     1.1 --- a/xen/common/schedule.c	Fri Mar 14 16:53:36 2003 +0000
     1.2 +++ b/xen/common/schedule.c	Fri Mar 14 16:57:54 2003 +0000
     1.3 @@ -60,6 +60,7 @@ schedule_data_t schedule_data[NR_CPUS];
     1.4  
     1.5  struct ac_timer     v_timer;        /* scheduling timer  */
     1.6  static void virt_timer(unsigned long foo);
     1.7 +static void dump_rqueue(struct list_head *queue, char *name);
     1.8  
     1.9  
    1.10  /*****************************************************************************
    1.11 @@ -148,7 +149,7 @@ int wake_up(struct task_struct *p)
    1.12  
    1.13  /****************************************************************************
    1.14   * Domain requested scheduling operations
    1.15 - * KAF: No, turn it back into do_yield()!
    1.16 + * KAF: turn it back into do_yield()!
    1.17   ****************************************************************************/
    1.18  long do_sched_op(void)
    1.19  {
    1.20 @@ -197,6 +198,8 @@ long sched_adjdom(int dom, unsigned long
    1.21   * - current task is idle task
    1.22   * - new processes evt is lower than current one
    1.23   * - the current task already ran for it's context switch allowance
    1.24 + * XXX RN: not quite sure about the last two. Strictly, if p->evt < curr->evt
    1.25 + * should still let curr run for at least ctx_allow. But that gets quite messy.
    1.26   ****************************************************************************/
    1.27  void reschedule(struct task_struct *p)
    1.28  {
    1.29 @@ -369,11 +372,12 @@ asmlinkage void schedule(void)
    1.30      ASSERT(r_time != 0);
    1.31      ASSERT(r_time > ctx_allow);
    1.32  
    1.33 +#if 0
    1.34      if ( (r_time==0) || (r_time < ctx_allow)) {
    1.35          printk("[%02d]: %lx\n", this_cpu, r_time);
    1.36          dump_rqueue(&schedule_data[this_cpu].runqueue, "foo");
    1.37      }
    1.38 -
    1.39 +#endif
    1.40  
    1.41      prev->has_cpu = 0;
    1.42      next->has_cpu = 1;