From: Ryan Harper Subject: [PATCH] xen: is_idle_task cleanup Date: Tue, 5 Apr 2005 15:01:50 -0500 Message-ID: <20050405200150.GC3347@luffy.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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. Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 ryanh@us.ibm.com diffstat output: schedule.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Signed-off-by: Ryan Harper --- diff -urN a/xen/common/schedule.c b/xen/common/schedule.c --- a/xen/common/schedule.c 2005-04-04 22:16:38.000000000 -0500 +++ b/xen/common/schedule.c 2005-04-05 14:51:19.000000000 -0500 @@ -406,7 +406,7 @@ perfc_incrc(sched_ctx); #if defined(WAKE_HISTO) - if ( !is_idle_task(next) && next->wokenup ) { + if ( !is_idle_task(next->domain) && next->wokenup ) { ulong diff = (ulong)(now - next->wokenup); diff /= (ulong)MILLISECS(1); if (diff <= BUCKETS-2) schedule_data[cpu].hist[diff]++; @@ -415,7 +415,7 @@ next->wokenup = (s_time_t)0; #elif defined(BLOCKTIME_HISTO) prev->lastdeschd = now; - if ( !is_idle_task(next) ) + if ( !is_idle_task(next->domain) ) { ulong diff = (ulong)((now - next->lastdeschd) / MILLISECS(10)); if (diff <= BUCKETS-2) schedule_data[cpu].hist[diff]++;