From patchwork Fri May 20 03:10:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: perf: omap3/omap4: enable OMAP3_EMU to support perf Date: Thu, 19 May 2011 17:10:34 -0000 From: Ming Lei X-Patchwork-Id: 96518 Message-Id: <20110520111034.514b6309@tom-ThinkPad-T410> To: kernel-team@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