Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753500AbbGINME (ORCPT ); Thu, 9 Jul 2015 09:12:04 -0400 Received: from e34.co.us.ibm.com ([32.97.110.152]:43709 "EHLO e34.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752197AbbGINLy (ORCPT ); Thu, 9 Jul 2015 09:11:54 -0400 X-Helo: d03dlp02.boulder.ibm.com X-MailFrom: sukadev@linux.vnet.ibm.com X-RcptTo: linux-kernel@vger.kernel.org Date: Wed, 8 Jul 2015 15:09:44 -0700 From: Sukadev Bhattiprolu To: Madhavan Srinivasan Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Anton Blanchard , Anshuman Khandual , Stephane Eranian , peterz@infradead.org Subject: Re: [PATCH v4 4/7] powerpc/powernv: detect supported nest pmus and its events Message-ID: <20150708220944.GB22635@us.ibm.com> References: <1436360506-18805-1-git-send-email-maddy@linux.vnet.ibm.com> <1436360506-18805-5-git-send-email-maddy@linux.vnet.ibm.com> <20150708220125.GA22635@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150708220125.GA22635@us.ibm.com> X-Operating-System: Linux 2.0.32 on an i486 User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15070913-0017-0000-0000-00000C2F8C9A Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 703 Lines: 22 Sukadev Bhattiprolu [sukadev@linux.vnet.ibm.com] wrote: | | @@ -50,6 +163,15 @@ static int nest_ima_dt_parser(void) | | p8ni->vbase = (uint64_t) phys_to_virt(p8ni->pbase); | | } | | | | + /* Look for supported Nest PMU units */ | | + idx = 0; | | + for_each_node_by_type(dev, "nest-ima-unit") { | | + ret = nest_pmu_create(dev, idx); | | + if (ret) | | + return ret; | | + idx++; | | idx not used? Sorry, disregard this. Had my blinders on :-( -- 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/