From patchwork Fri May 20 03:10:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 96518 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id B12D9B71B0 for ; Fri, 20 May 2011 13:11:04 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1QNG6z-0006W3-G1; Fri, 20 May 2011 03:10:49 +0000 Received: from adelie.canonical.com ([91.189.90.139]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1QNG6x-0006VF-2O for kernel-team@lists.ubuntu.com; Fri, 20 May 2011 03:10:47 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QNG6w-0000nd-EW for ; Fri, 20 May 2011 03:10:46 +0000 Received: from [119.136.71.105] (helo=tom-ThinkPad-T410) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1QNG6u-00045L-5v for kernel-team@lists.ubuntu.com; Fri, 20 May 2011 03:10:46 +0000 Date: Fri, 20 May 2011 11:10:34 +0800 From: Ming Lei To: kernel-team@lists.ubuntu.com Subject: [PATCH] perf: omap3/omap4: enable OMAP3_EMU to support perf Message-ID: <20110520111034.514b6309@tom-ThinkPad-T410> Organization: ubuntu X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.4; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com From 38737ec07a2aa013015d9f0088e2912a3d090f6f Mon Sep 17 00:00:00 2001 From: Ming Lei Date: Fri, 20 May 2011 10:59:59 +0800 Subject: [PATCH] perf: omap3/omap4: enable OMAP3_EMU to support perf See the below dependency: config CPU_HAS_PMU depends on (CPU_V6 || CPU_V6K || CPU_V7 || XSCALE_PMU) && \ (!ARCH_OMAP3 || OMAP3_EMU) default y bool so we have to enable OMAP3_EMU that CPU_HAS_PMU can be selected to make pmu.o built into kernel, then perf is supported on omap3 and omap4. No doubt, perf may work well on omap3 based board. For omap4, perf still does work with the patches: http://lists.infradead.org/pipermail/linux-arm-kernel/2011-March/045283.html LP#702999 have some kind of track about this. Signed-off-by: Ming Lei --- debian.ti-omap4/config/config.common.ubuntu | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/debian.ti-omap4/config/config.common.ubuntu b/debian.ti-omap4/config/config.common.ubuntu index 3e3725f..262324b 100644 --- a/debian.ti-omap4/config/config.common.ubuntu +++ b/debian.ti-omap4/config/config.common.ubuntu @@ -480,6 +480,7 @@ CONFIG_CPU_CP15_MMU=y # CONFIG_CPU_DCACHE_DISABLE is not set # CONFIG_CPU_FREQ is not set CONFIG_CPU_HAS_ASID=y +CONFIG_CPU_HAS_PMU=y # CONFIG_CPU_ICACHE_DISABLE is not set CONFIG_CPU_IDLE=y CONFIG_CPU_IDLE_GOV_LADDER=y @@ -1068,6 +1069,7 @@ CONFIG_HWMON_VID=m CONFIG_HWSPINLOCK=y CONFIG_HWSPINLOCK_OMAP=y CONFIG_HW_CONSOLE=y +CONFIG_HW_PERF_EVENTS=y CONFIG_HW_RANDOM=y # CONFIG_HW_RANDOM_TIMERIOMEM is not set CONFIG_HZ=128 @@ -2098,7 +2100,7 @@ CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=0 CONFIG_OMAP2_VRAM=y CONFIG_OMAP2_VRAM_SIZE=32 CONFIG_OMAP2_VRFB=y -# CONFIG_OMAP3_EMU is not set +CONFIG_OMAP3_EMU=y # CONFIG_OMAP3_L2_AUX_SECURE_SAVE_RESTORE is not set # CONFIG_OMAP3_SDRC_AC_TIMING is not set CONFIG_OMAP4_DSS_HDMI=y