From: Paul Mundt Subject: Re: [PATCH 2/7] perf: New helper function for pmu name Date: Tue, 5 Oct 2010 17:10:57 +0900 Message-ID: <20101005081057.GB7984@linux-sh.org> References: <59a8e68894a2e755232189abbe9b1a3b892e309c.1286222593.git.matt@console-pimps.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <59a8e68894a2e755232189abbe9b1a3b892e309c.1286222593.git.matt@console-pimps.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Matt Fleming Cc: linux-arch@vger.kernel.org, Grant Likely , Russell King , linux-sh@vger.kernel.org, Robert Richter , Frederic Weisbecker , Will Deacon , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Peter Zijlstra , Deng-Cheng Zhu , Ingo Molnar , linux-arm-kernel@lists.infradead.org List-Id: linux-arch.vger.kernel.org On Mon, Oct 04, 2010 at 09:44:20PM +0100, Matt Fleming wrote: > Introduce perf_pmu_name() helper function that returns the name of the > pmu. This gives us a generic way to get the name of a pmu regardless of > how an architecture identifies it internally, e.g. ARM uses an id > whereas SH currently uses a string. > > Signed-off-by: Matt Fleming This looks fine too. Later we can see about switching the SH case over to CPU subtype IDs, but it doesn't matter for now. Acked-by: Paul Mundt