Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755291AbbGVFFT (ORCPT ); Wed, 22 Jul 2015 01:05:19 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:36149 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751594AbbGVFFR (ORCPT ); Wed, 22 Jul 2015 01:05:17 -0400 Message-ID: <1437541404.30906.43.camel@axtens.net> Subject: Re: [PATCH v5 7/7] powerpc/powernv: nest pmu cpumask and cpu hotplug support From: Daniel Axtens To: Madhavan Srinivasan Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Stephane Eranian , Paul Mackerras , Anton Blanchard , Preeti U Murthy , Sukadev Bhattiprolu , Ingo Molnar , Anshuman Khandual Date: Wed, 22 Jul 2015 15:03:24 +1000 In-Reply-To: <1437045206-7491-8-git-send-email-maddy@linux.vnet.ibm.com> References: <1437045206-7491-1-git-send-email-maddy@linux.vnet.ibm.com> <1437045206-7491-8-git-send-email-maddy@linux.vnet.ibm.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-jHstorbYGIgS/giXn/Lm" X-Mailer: Evolution 3.12.11-1 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1871 Lines: 54 --=-jHstorbYGIgS/giXn/Lm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > +static void nest_change_cpu_context(int old_cpu, int new_cpu) > +{ > + int i; > + > + for (i =3D 0; per_nest_pmu_arr[i] !=3D NULL; i++) > + perf_pmu_migrate_context(&per_nest_pmu_arr[i]->pmu, > + old_cpu, new_cpu); =46rom patch 4, I see per_nest_pmu_arr is defined as: +static struct nest_pmu *per_nest_pmu_arr[P8_NEST_MAX_PMUS]; Therefore, does this loop need to have a check that=20 i < P8_NEST_MAX_PMUS? --=20 Regards, Daniel --=-jHstorbYGIgS/giXn/Lm 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 v2 Comment: GPGTools - https://gpgtools.org iQIcBAABCgAGBQJVryQcAAoJEPC3R3P2I92FdCkP/1lyVhSzMyLcjjEDRiq64996 kGwMUTZSlaCq0Go/wSsKd7bai8/3CTWqTlXCTKfTErjoX5fqPGfRJV9TxzMdxfb3 RP5lpQLX92BKAhfDvAWfBou5itEKPIHdhfrQAH4yramEWcZ0DqXX5gPLLZYGsXIA iOA9g2IZsR4A8iLGceJSAsw+tzLFdHFHEWAwP6CJPWLvOUkvKA9oGr5lbvtigNKw vTTV1e8hf2bPIXXYMSIoa9mp4kz4ZumdP5vLz8x9+vvAUXvxgFxAXuA35hhov36g 2QSen+1psZ7GaIf4Fl++llZmkwnQfY2yzlVYCplNGYgZPxdhElsRtnAqtnKsdjhI d12DSLc5AXj/r8sDDwsTc/fYZyzQS1yl9tP4vkHNXCBkxBrYJrg4+P63TwjT1whV 88DyUKRhX1oHqb+bPZTUMH4CRzoAxHZWwpeWN1uMbmbEbjsIeGhylpWoxcx5Gky0 mMnZM4lwtbCbgvSmPqtXPO8rh8B9ob2r2/ol0TiOM/EMg58ILX65K089NBi/TQBh jbw04vg3SuFuUdVc0/vdIXC9+843DAW/aC7EZh1CB8RkABV6KRKvMXGVi6+p2IJ7 0g9r+dOGRYPOUIduF2DrUUv7g9sQB+b+wwQFphYri7OynB9YSTN2TreEG6f0f8e/ 3lDGTrq1xG5LRc/QI+31 =2o1G -----END PGP SIGNATURE----- --=-jHstorbYGIgS/giXn/Lm-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/