From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 6/6] arm: omap: specify PMUs are for ARMv7 CPUs
Date: Fri, 21 Nov 2014 15:15:09 -0800 [thread overview]
Message-ID: <20141121231508.GX7046@atomide.com> (raw)
In-Reply-To: <1416397800-12457-7-git-send-email-mark.rutland@arm.com>
* Mark Rutland <mark.rutland@arm.com> [141119 03:53]:
> Now that we can specify which PMU variant we're likely to deal with, do
> so in the omap board code. This will allow us to split the ARMv6, ARMv7,
> and XScale PMU drivers.
>
> The unnecessary include of asm/pmu.h is also removed.
>
> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
> Cc: Tony Lindgren <tony@atomide.com>
> Cc: Olof Johansson <olof@lixom.net>
> Cc: Arnd Bergmann <arnd@arndb.de>
Looks OK to me:
Acked-by: Tony Lindgren <tony@atomide.com>
> ---
> arch/arm/mach-omap2/pmu.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pmu.c b/arch/arm/mach-omap2/pmu.c
> index 33c8846..a69e9a3 100644
> --- a/arch/arm/mach-omap2/pmu.c
> +++ b/arch/arm/mach-omap2/pmu.c
> @@ -13,7 +13,7 @@
> */
> #include <linux/of.h>
>
> -#include <asm/pmu.h>
> +#include <asm/system_info.h>
>
> #include "soc.h"
> #include "omap_hwmod.h"
> @@ -37,7 +37,8 @@ static int __init omap2_init_pmu(unsigned oh_num, char *oh_names[])
> {
> int i;
> struct omap_hwmod *oh[3];
> - char *dev_name = "arm-pmu";
> + char *dev_name = cpu_architecture() == CPU_ARCH_ARMv6 ?
> + "armv6-pmu" : "armv7-pmu";
>
> if ((!oh_num) || (oh_num > 3))
> return -EINVAL;
> --
> 1.9.1
>
prev parent reply other threads:[~2014-11-21 23:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 11:49 [PATCH 0/6] arm: specify PMU type in platform data Mark Rutland
2014-11-19 11:49 ` [PATCH 1/6] arm: realview: specify PMU types Mark Rutland
2014-11-28 10:29 ` Linus Walleij
2014-11-19 11:49 ` [PATCH 2/6] arm: pxa: specify PMUs are for XScale CPUs Mark Rutland
2014-11-19 20:12 ` Robert Jarzmik
2014-11-19 11:49 ` [PATCH 3/6] arm: vexpress: specify PMUs are for ARMv7 CPUs Mark Rutland
2014-11-19 11:49 ` [PATCH 4/6] arm: iop: specify PMUs are for XScale CPUs Mark Rutland
2014-11-28 10:30 ` Linus Walleij
2014-11-19 11:49 ` [PATCH 5/6] arm: shmobile: specify PMUs are for ARMv7 CPUs Mark Rutland
2014-11-20 1:12 ` Simon Horman
2014-11-19 11:50 ` [PATCH 6/6] arm: omap: " Mark Rutland
2014-11-21 23:15 ` Tony Lindgren [this message]
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=20141121231508.GX7046@atomide.com \
--to=tony@atomide.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).