From: Will Deacon <will.deacon@arm.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/2] ARM: shmobile: sh73a0: enable PMU(Performance Monitoring Unit)
Date: Thu, 06 Sep 2012 09:11:28 +0000 [thread overview]
Message-ID: <20120906091128.GB858@mudshark.cambridge.arm.com> (raw)
In-Reply-To: <1346909447-12526-2-git-send-email-koba@kmckk.co.jp>
On Thu, Sep 06, 2012 at 06:30:46AM +0100, Tetsuyuki Kobayshi wrote:
> From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
>
> This patch enables PMU(Performance Monitoring Unit) for sh73a0.
>
> Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
> ---
> Changes for v2:
> - Removed #ifdef CONFIG_HW_PERF_EVENTS
> - Added kzm9g_defconfig
>
> arch/arm/configs/kzm9g_defconfig | 1 +
> arch/arm/mach-shmobile/setup-sh73a0.c | 22 ++++++++++++++++++++++
> 2 files changed, 23 insertions(+)
>
> diff --git a/arch/arm/configs/kzm9g_defconfig b/arch/arm/configs/kzm9g_defconfig
> index 2388c86..5d0c667 100644
> --- a/arch/arm/configs/kzm9g_defconfig
> +++ b/arch/arm/configs/kzm9g_defconfig
> @@ -14,6 +14,7 @@ CONFIG_NAMESPACES=y
> CONFIG_CC_OPTIMIZE_FOR_SIZE=y
> CONFIG_SYSCTL_SYSCALL=y
> CONFIG_EMBEDDED=y
> +CONFIG_PERF_EVENTS=y
> CONFIG_SLAB=y
> CONFIG_MODULES=y
> CONFIG_MODULE_FORCE_LOAD=y
> diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c
> index d230af6..8186a08 100644
> --- a/arch/arm/mach-shmobile/setup-sh73a0.c
> +++ b/arch/arm/mach-shmobile/setup-sh73a0.c
> @@ -39,6 +39,7 @@
> #include <asm/mach/map.h>
> #include <asm/mach/arch.h>
> #include <asm/mach/time.h>
> +#include <asm/pmu.h>
>
> static struct map_desc sh73a0_io_desc[] __initdata = {
> /* create a 1:1 entity map for 0xe6xxxxxx
> @@ -734,6 +735,26 @@ static struct platform_device mpdma0_device = {
> },
> };
>
> +static struct resource pmu_resources[] = {
> + [0] = {
> + .start = gic_spi(55),
> + .end = gic_spi(55),
> + .flags = IORESOURCE_IRQ,
> + },
> + [1] = {
> + .start = gic_spi(56),
> + .end = gic_spi(56),
> + .flags = IORESOURCE_IRQ,
> + },
> +};
> +
> +static struct platform_device pmu_device = {
> + .name = "arm-pmu",
> + .id = ARM_PMU_DEVICE_CPU,
> + .num_resources = ARRAY_SIZE(pmu_resources),
> + .resource = pmu_resources,
> +};
Please check my latest perf stuff to go into arm-soc (pmu/cleanup). The
ARM_PMU_DEVICE_CPU crap has disappeared and you won't need to include
asm/pmu.h anymore.
Will
next prev parent reply other threads:[~2012-09-06 9:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 2:48 [PATCH 0/2] ARM: shmobile: enable PMU(Performance Monitoring Unit) Tetsuyuki Kobayshi
2012-09-06 5:30 ` [PATCH v2 " Tetsuyuki Kobayshi
2012-09-06 5:30 ` [PATCH v2 1/2] ARM: shmobile: sh73a0: " Tetsuyuki Kobayshi
2012-09-06 9:11 ` Will Deacon [this message]
2012-09-06 9:57 ` Tetsuyuki Kobayashi
2012-09-06 11:14 ` [PATCH v3 0/2] ARM: shmobile: " Tetsuyuki Kobayshi
2012-09-06 11:14 ` [PATCH v3 1/2] ARM: shmobile: sh73a0: " Tetsuyuki Kobayshi
2012-09-06 11:14 ` [PATCH v3 2/2] ARM: shmobile: emev2: " Tetsuyuki Kobayshi
2012-09-06 11:21 ` [PATCH v3 0/2] ARM: shmobile: " Will Deacon
2012-09-07 1:50 ` Tetsuyuki Kobayashi
2012-09-07 8:46 ` Will Deacon
2012-09-07 13:25 ` Simon Horman
2012-09-11 8:10 ` Simon Horman
2012-09-06 5:30 ` [PATCH v2 2/2] ARM: shmobile: emev2: " Tetsuyuki Kobayshi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120906091128.GB858@mudshark.cambridge.arm.com \
--to=will.deacon@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).