[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [PATCH] [PATCH] xen: is_idle_task cleanup
ChangeSet 1.1835, 2005/04/18 22:29:44+01:00, ryanh@xxxxxxxxxx [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@xxxxxxxxxx> schedule.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/xen/common/schedule.c b/xen/common/schedule.c --- a/xen/common/schedule.c 2005-04-18 21:08:35 -04:00 +++ b/xen/common/schedule.c 2005-04-18 21:08:35 -04:00 @@ -364,7 +364,7 @@ cleanup_writable_pagetable(prev); #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]++; @@ -373,7 +373,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]++; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |