From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4PDx-0002rK-7R for qemu-devel@nongnu.org; Mon, 15 Jun 2015 03:54:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4PDs-0002rr-PR for qemu-devel@nongnu.org; Mon, 15 Jun 2015 03:54:29 -0400 Date: Mon, 15 Jun 2015 16:41:46 +1000 From: David Gibson Message-ID: <20150615064146.GF13352@voom.redhat.com> References: <1433478358-993-1-git-send-email-bharata@linux.vnet.ibm.com> <1433478358-993-4-git-send-email-bharata@linux.vnet.ibm.com> <5571B496.8080107@suse.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f61P+fpdnY2FZS1u" Content-Disposition: inline In-Reply-To: <5571B496.8080107@suse.de> Subject: Re: [Qemu-devel] [PATCH v4 3/8] cpus: Add a macro to walk CPUs in reverse List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: thuth@redhat.com, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com, agraf@suse.de, aik@ozlabs.ru, qemu-ppc@nongnu.org, tyreld@linux.vnet.ibm.com, Bharata B Rao , nfont@linux.vnet.ibm.com --f61P+fpdnY2FZS1u Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 05, 2015 at 11:39:18PM +0900, Andreas F=E4rber wrote: > Am 05.06.2015 um 13:25 schrieb Bharata B Rao: > > Add CPU_FOREACH_REVERSE that walks CPUs in reverse. > >=20 > > Needed for PowerPC CPU device tree reorganization. > >=20 > > Signed-off-by: Bharata B Rao > > Cc: Andreas F=E4rber > > --- > > include/qom/cpu.h | 2 ++ > > 1 file changed, 2 insertions(+) > >=20 > > diff --git a/include/qom/cpu.h b/include/qom/cpu.h > > index 39f0f19..42f42f5 100644 > > --- a/include/qom/cpu.h > > +++ b/include/qom/cpu.h > > @@ -323,6 +323,8 @@ extern struct CPUTailQ cpus; > > #define CPU_FOREACH(cpu) QTAILQ_FOREACH(cpu, &cpus, node) > > #define CPU_FOREACH_SAFE(cpu, next_cpu) \ > > QTAILQ_FOREACH_SAFE(cpu, &cpus, node, next_cpu) > > +#define CPU_FOREACH_REVERSE(cpu) \ > > + QTAILQ_FOREACH_REVERSE(cpu, &cpus, CPUTailQ, node) > > #define first_cpu QTAILQ_FIRST(&cpus) > > =20 > > DECLARE_TLS(CPUState *, current_cpu); >=20 > Reviewed-by: Andreas F=E4rber I'm hoping to merge the parts of this series that affect the spapr code (most of it) shortly. Should this patch go through another tree though? --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --f61P+fpdnY2FZS1u Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVfnOqAAoJEGw4ysog2bOSgC4P/3W8eewcCD+Ur+PHLYoFY6xA faxauHlNFFGgUvdmXZSdVkMWQTZ+aGo5UM2dNQG7/eXV/0NjDOwuDoELY0ci+0Zc kl5pJJYcayYzb9w9mU2VgNjy1VVd7S5RrHhnrU3Yyg0zPVUXpzYZa9NQNl7OU2Lk xogoNC5Zpyv6yuw6AUMp/aqoWJL04cvMJ35OwX7q1ZuEYcxA0mbE2st8jFGuEruR 0F3ujNXv0qIcef+RwKvpye0DLNtAEm2trmZ7wULtLAa9b+a2enKVaHYY5YvYdPUQ +B6642C0+kLZGqpZwEtYjTPEJCY1qMIbSslwsvuW6PyqIOJsoAwwI/288I4lOkEh RPIk7PYWnfTbB/IpbATRo+/lwTv0os2pKAi8qqFIbkDfBqED3zZlkYmOIWKtYwFs gXS5iCf+FORLEpKuCPu8hrrJRj9LXJrU4owGydaXiSZykLPLgn6FxSlkolZgi7wB silq0wm95Te0L1BgnxUYFUQIP/gHsXzNw8GRTQ8iIxUvOe3IOB+3Tr5o+6kTz9PU odoKuVFSmKrUj4iM0QR4Cp3Y7+zdcZLtS9MudXC2Ss2AGzPyq9NoUzpkUZirHXvR LGmEw84X2Q54wxyqyTkI34rwPh038RIlYlkXnp/HWMLSx5nVlz/a1hg2GYWgv1Hn dg1Q9NGfOtyD8WKsUl7Y =GTpn -----END PGP SIGNATURE----- --f61P+fpdnY2FZS1u--