[PATCH] Add Broadcom Brahma-B15 CPU implementor and part number

Florian Fainelli <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
Broadcom's Brahma-B15 CPU features a PMU which is 100% software
compatible with those found on Cortex-A15 designs.  Add the required
code to recognize the implementor id (0x42) and the Brahma-B15 part
number (0x00f) and return "arm/armv7-ca15" so we can utilize the PMU.

Signed-off-by: Florian Fainelli <[email protected]>
---
 libop/op_cpu_type.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libop/op_cpu_type.c b/libop/op_cpu_type.c
index 362489c40989..3034c146f7bb 100644
--- a/libop/op_cpu_type.c
+++ b/libop/op_cpu_type.c
@@ -415,6 +415,11 @@ static op_cpu _get_arm_cpu_type(void)
 		case 0xd03:
 			return op_get_cpu_number("arm/armv8-ca53");
 		}
+	} else if (vendorid == 0x42) {  /* Broadcom Corporation */
+		switch (cpuid) {
+		case 0x00f:
+			return op_get_cpu_number("arm/armv7-ca15");
+		}
 	} else if (vendorid == 0x50) {	/* Applied Micro Circuits Corporation */
 		switch (cpuid) {
 		case 0x000:
-- 
2.1.0


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.