From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH v2 2/4] xen: sched: make counters for vCPU sleep and wakeup generic Date: Mon, 16 Mar 2015 17:18:22 +0000 Message-ID: <5507105E.2030208@eu.citrix.com> References: <20150227163925.32500.15985.stgit@Solace.station> <20150227165110.32500.78336.stgit@Solace.station> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150227165110.32500.78336.stgit@Solace.station> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli , Xen-devel Cc: Keir Fraser , Meng Xu , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 02/27/2015 04:51 PM, Dario Faggioli wrote: > and update them from Credit2 and RTDS. In Credit2, while there, > remove some stale comments too. > > Signed-off-by: Dario Faggioli > Cc: George Dunlap > Cc: Meng Xu > Cc: Jan Beulich > Cc: Keir Fraser > Reviewed-by: Meng Xu > Acked-by: Jan Beulich One comment... > --- > xen/common/sched_credit2.c | 12 ++++++++---- > xen/common/sched_rt.c | 12 ++++++++++++ > xen/include/xen/perfc_defn.h | 10 +++++----- > 3 files changed, 25 insertions(+), 9 deletions(-) > > diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c > index ad0a5d4..2b852cc 100644 > --- a/xen/common/sched_credit2.c > +++ b/xen/common/sched_credit2.c > @@ -931,6 +931,7 @@ csched2_vcpu_sleep(const struct scheduler *ops, struct vcpu *vc) > struct csched2_vcpu * const svc = CSCHED2_VCPU(vc); > > BUG_ON( is_idle_vcpu(vc) ); > + SCHED_STAT_CRANK(vcpu_sleep); > > if ( per_cpu(schedule_data, vc->processor).curr == vc ) > cpu_raise_softirq(vc->processor, SCHEDULE_SOFTIRQ); > @@ -956,19 +957,22 @@ csched2_vcpu_wake(const struct scheduler *ops, struct vcpu *vc) > > BUG_ON( is_idle_vcpu(vc) ); > > - /* Make sure svc priority mod happens before runq check */ > if ( unlikely(per_cpu(schedule_data, vc->processor).curr == vc) ) > { > + SCHED_STAT_CRANK(vcpu_wake_running); > goto out; > } > - > if ( unlikely(__vcpu_on_runq(svc)) ) Does this make the 'if' butt right up against the '{'? Is that bad? Other than that: Acked-by: George Dunlap However, it doesn't apply cleanly at the moment, so you'll probably need to send a refresh. (Sorry for taking so long!) -George