From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 5/5] arm: omap: specify PMUs are for ARMv7 CPUs
Date: Tue, 20 Jan 2015 09:16:12 -0800 [thread overview]
Message-ID: <20150120171612.GG7718@atomide.com> (raw)
In-Reply-To: <1421770049-32029-6-git-send-email-mark.rutland@arm.com>
* Mark Rutland <mark.rutland@arm.com> [150120 08:12]:
> 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>
> Acked-by: Tony Lindgren <tony@atomide.com>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Olof Johansson <olof@lixom.net>
> ---
> 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;
Looks OK to me and should not conflict with anything I have queued:
Acked-by: Tony Lindgren <tony@atomide.com>
next prev parent reply other threads:[~2015-01-20 17:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 16:07 [PATCHv2 0/5] arm: specify PMU type in platform data Mark Rutland
2015-01-20 16:07 ` [PATCHv2 1/5] arm: realview: specify PMU types Mark Rutland
2015-01-20 16:07 ` [PATCHv2 2/5] arm: pxa: specify PMUs are for XScale CPUs Mark Rutland
2015-01-20 16:07 ` [PATCHv2 3/5] arm: iop: " Mark Rutland
2015-01-20 16:07 ` [PATCHv2 4/5] arm: shmobile: specify PMUs are for ARMv7 CPUs Mark Rutland
2015-01-21 0:17 ` Simon Horman
2015-01-20 16:07 ` [PATCHv2 5/5] arm: omap: " Mark Rutland
2015-01-20 17:16 ` Tony Lindgren [this message]
2015-01-21 0:17 ` [PATCHv2 0/5] arm: specify PMU type in platform data Simon Horman
2015-01-21 14:30 ` Mark Rutland
2015-02-02 16:51 ` Mark Rutland
2015-02-06 8:13 ` Olof Johansson
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=20150120171612.GG7718@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).