ia64/xen-unstable

changeset 306:65d3d3ac118c

bitkeeper revision 1.128 (3e7209106WnBs5UIbLU-KwO7AKfIRg)

merged in KAF's changes
author rn@wyvis.research.intel-research.net
date Fri Mar 14 16:53:36 2003 +0000 (2003-03-14)
parents 6e398cd3bf49
children ead63ee9164e
files xen/common/schedule.c
line diff
     1.1 --- a/xen/common/schedule.c	Fri Mar 14 16:38:30 2003 +0000
     1.2 +++ b/xen/common/schedule.c	Fri Mar 14 16:53:36 2003 +0000
     1.3 @@ -148,6 +148,7 @@ int wake_up(struct task_struct *p)
     1.4  
     1.5  /****************************************************************************
     1.6   * Domain requested scheduling operations
     1.7 + * KAF: No, turn it back into do_yield()!
     1.8   ****************************************************************************/
     1.9  long do_sched_op(void)
    1.10  {
    1.11 @@ -419,6 +420,14 @@ asmlinkage void schedule(void)
    1.12      return;
    1.13  }
    1.14  
    1.15 +/* No locking needed -- pointer comparison is safe :-) */
    1.16 +int idle_cpu(int cpu)
    1.17 +{
    1.18 +    struct task_struct *p = schedule_data[cpu].curr;
    1.19 +    return p == idle_task[cpu];
    1.20 +}
    1.21 +
    1.22 +
    1.23  /*
    1.24   * The scheduler timer.
    1.25   */