From: Ian Campbell Subject: Re: [PATCH 1/2] xen: export do_yield as vcpu_yield Date: Wed, 23 Jul 2014 13:14:31 +0100 Message-ID: <1406117671.17482.11.camel@kazak.uk.xensource.com> References: <1406117103-10584-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X9vRM-0005j8-CJ for xen-devel@lists.xenproject.org; Wed, 23 Jul 2014 12:14:36 +0000 In-Reply-To: <1406117103-10584-1-git-send-email-stefano.stabellini@eu.citrix.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: Stefano Stabellini Cc: anup.patel@linaro.org, george.dunlap@eu.citrix.com, julien.grall@linaro.org, JBeulich@suse.com, xen-devel@lists.xenproject.org, pranavkumar@linaro.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-07-23 at 13:05 +0100, Stefano Stabellini wrote: > Signed-off-by: Stefano Stabellini > CC: george.dunlap@eu.citrix.com > CC: JBeulich@suse.com > --- > xen/common/schedule.c | 10 +++++----- > xen/include/xen/sched.h | 1 + > 2 files changed, 6 insertions(+), 5 deletions(-) > > diff --git a/xen/common/schedule.c b/xen/common/schedule.c > index e9eb0bc..6631dc8 100644 > --- a/xen/common/schedule.c > +++ b/xen/common/schedule.c > @@ -795,9 +795,8 @@ static long do_poll(struct sched_poll *sched_poll) > } > > /* Voluntarily yield the processor for this allocation. */ > -static long do_yield(void) > +void vcpu_yield(struct vcpu *v) > { > - struct vcpu * v=current; Is it safe to yield another vcpu? Ian.