xen: is_idle_task cleanup
PATCH 1/1 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.
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
[email protected]
diffstat output:
schedule.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Signed-off-by Ryan Harper <[email protected]>
---
xen/common/schedule.c +2 -2
@@ -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]++;