ia64/xen-unstable

changeset 4559:fde01e3e4b45

bitkeeper revision 1.1159.258.101 (426426c8abaWsVEeXnAJoNNGZ6ooyg)

[PATCH] [PATCH] xen: is_idle_task cleanup

The macro is_idle_task references d_flags which is only in struct
domain. When WAKE_HISTO or BLOCKTIME_HISTO are defined (in schedule.c)
xen fails to compile with out the attached patch.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
author ryanh@us.ibm.com[iap10]
date Mon Apr 18 21:29:44 2005 +0000 (2005-04-18)
parents c35967b5863a
children a1f760a94785 ec106abf799e
files BitKeeper/etc/logging_ok xen/common/schedule.c
line diff
     1.1 --- a/BitKeeper/etc/logging_ok	Mon Apr 18 21:10:18 2005 +0000
     1.2 +++ b/BitKeeper/etc/logging_ok	Mon Apr 18 21:29:44 2005 +0000
     1.3 @@ -57,6 +57,7 @@ rn@wyvis.camb.intel-research.net
     1.4  rn@wyvis.research.intel-research.net
     1.5  rneugeba@wyvis.research
     1.6  rneugeba@wyvis.research.intel-research.net
     1.7 +ryanh@us.ibm.com
     1.8  sd386@font.cl.cam.ac.uk
     1.9  shand@spidean.research.intel-research.net
    1.10  smh22@boulderdash.cl.cam.ac.uk
     2.1 --- a/xen/common/schedule.c	Mon Apr 18 21:10:18 2005 +0000
     2.2 +++ b/xen/common/schedule.c	Mon Apr 18 21:29:44 2005 +0000
     2.3 @@ -364,7 +364,7 @@ static void __enter_scheduler(void)
     2.4      cleanup_writable_pagetable(prev);
     2.5  
     2.6  #if defined(WAKE_HISTO)
     2.7 -    if ( !is_idle_task(next) && next->wokenup ) {
     2.8 +    if ( !is_idle_task(next->domain) && next->wokenup ) {
     2.9          ulong diff = (ulong)(now - next->wokenup);
    2.10          diff /= (ulong)MILLISECS(1);
    2.11          if (diff <= BUCKETS-2)  schedule_data[cpu].hist[diff]++;
    2.12 @@ -373,7 +373,7 @@ static void __enter_scheduler(void)
    2.13      next->wokenup = (s_time_t)0;
    2.14  #elif defined(BLOCKTIME_HISTO)
    2.15      prev->lastdeschd = now;
    2.16 -    if ( !is_idle_task(next) )
    2.17 +    if ( !is_idle_task(next->domain) )
    2.18      {
    2.19          ulong diff = (ulong)((now - next->lastdeschd) / MILLISECS(10));
    2.20          if (diff <= BUCKETS-2)  schedule_data[cpu].hist[diff]++;