From: Ian Campbell Subject: Re: [PATCH v8a 1/6] xen/arm: move and rename is_vcpu_running function to sched.h Date: Thu, 3 Jul 2014 10:23:10 +0100 Message-ID: <1404379390.14865.16.camel@kazak.uk.xensource.com> References: <1404376489-25165-1-git-send-email-vijay.kilari@gmail.com> <1404376489-25165-2-git-send-email-vijay.kilari@gmail.com> <53B53A98020000780002004A@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53B53A98020000780002004A@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: keir@xen.org, vijay.kilari@gmail.com, stefano.stabellini@eu.citrix.com, Prasun.Kapoor@caviumnetworks.com, Vijaya Kumar K , julien.grall@linaro.org, tim@xen.org, george.dunlap@citrix.com, xen-devel@lists.xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, 2014-07-03 at 10:12 +0100, Jan Beulich wrote: > >>> On 03.07.14 at 10:34, wrote: > > +static inline bool_t is_vcpu_online(const struct vcpu *v) > > +{ > > + return !test_bit(_VPF_down, &v->pause_flags); > > +} > > Which now becomes a bit questionable a helper - it's not really helping > much to wrap this ting test_bit() into an inline function. But if others > like it, I'm not going to stand in the way. I think it's ok to have these sorts of accessors, they make the resulting calling if's a bit easier to reason about IMHO. Ian.