From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [Patch 2 of 2]: PV-domain SMP performance Linux-part Date: Thu, 18 Dec 2008 07:41:57 +0000 Message-ID: <494A0CD5.76E4.0078.0@novell.com> References: <4948EF0B.6090404@fujitsu-siemens.com> <49492387.76E4.0078.0@novell.com> <4949F950.80509@fujitsu-siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4949F950.80509@fujitsu-siemens.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Juergen Gross Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> Juergen Gross 18.12.08 08:18 >>> >Jan Beulich wrote: >>=20 >>> + _vcpu->no_desched =3D 0; = \ >>> + _vcpu->evtchn_upcall_mask =3D 0; = \ >>> barrier(); /* unmask then check (avoid races) */ \ >>> + if ( unlikely(_vcpu->desched_delay) ) \ >>> + (void)((HYPERVISOR_sched_op(SCHEDOP_yield, = _vcpu))?:0); \ >>=20 >> Why not just cast the function result to void? Likewise further = below... > >I took that from include/xen/hypercall.h, which mentioned problems with = just >casting the function result. Ah, yes, I recall. But then why don't you use that macro? After all, = hypercall.h must have been included if you're able to call HYPERVISOR_sched_op(). Jan