All of lore.kernel.org
 help / color / mirror / Atom feed
From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 6/6] arm: omap: specify PMUs are for ARMv7 CPUs
Date: Wed, 19 Nov 2014 11:50:00 +0000	[thread overview]
Message-ID: <1416397800-12457-7-git-send-email-mark.rutland@arm.com> (raw)
In-Reply-To: <1416397800-12457-1-git-send-email-mark.rutland@arm.com>

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>
---
 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

  parent reply	other threads:[~2014-11-19 11:50 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 ` Mark Rutland [this message]
2014-11-21 23:15   ` [PATCH 6/6] arm: omap: " Tony Lindgren

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=1416397800-12457-7-git-send-email-mark.rutland@arm.com \
    --to=mark.rutland@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.