From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH] xen: credit1: fix tickling when it happens from a remote pCPU Date: Thu, 24 Sep 2015 11:54:33 +0200 Message-ID: <1443088473.3276.30.camel@citrix.com> References: <20150924043127.10326.62756.stgit@Solace.station> <56039BE8.1070209@suse.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0138104077310804308==" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zf3Eh-0002hi-UZ for xen-devel@lists.xenproject.org; Thu, 24 Sep 2015 09:54:44 +0000 In-Reply-To: <56039BE8.1070209@suse.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: Juergen Gross , xen-devel@lists.xenproject.org Cc: George Dunlap List-Id: xen-devel@lists.xenproject.org --===============0138104077310804308== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-gopm1aIR5hFNtzOn74bc" --=-gopm1aIR5hFNtzOn74bc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2015-09-24 at 08:44 +0200, Juergen Gross wrote: > On 09/24/2015 06:31 AM, Dario Faggioli wrote: > > Signed-off-by: Dario Faggioli >=20 > Reviewed-by: Juergen Gross >=20 > regardless whether you address my suggestion below or not. > > --- a/xen/common/sched_credit.c > > +++ b/xen/common/sched_credit.c > > @@ -168,14 +168,16 @@ struct csched_pcpu { > > #define csched_balance_mask (CSCHED_PCPU(smp_processor_id()) > > ->balance_mask) >=20 > Wouldn't it make sense to get rid of that macro? After your patch it > is > used only in csched_runq_steal() which is called with cpu being > always > smp_processor_id(). You'd eliminate a possible source of future error > and avoid multiple evaluation of smp_processor_id(). >=20 Right. As said to Jan, I like this. I'll respin the patch with only the new macro. Thanks and Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-gopm1aIR5hFNtzOn74bc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEABECAAYFAlYDyFkACgkQk4XaBE3IOsQAIgCfZXnzHJ/5kKPSNb0Ua2nRqtV1 i8YAn2empADajgzOZrV+doQQWQz8OK8X =hIoI -----END PGP SIGNATURE----- --=-gopm1aIR5hFNtzOn74bc-- --===============0138104077310804308== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============0138104077310804308==--