[PATCH] Add Broadcom Brahma-B53 CPU implementor and part number
Florian Fainelli via oprofile-list <[email protected]> Mon, 9 Dec 2024 16:02:28 -0800
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <[email protected]> |
Broadcom's Brahma-B53 CPU features a PMU which is 100% software compatible with those found on Cortex-A53 designs. Add the required code to recognize the implementor id (0x42) and the Brahma-B53 part number (0x100) and return "arm/armv8-ca53" so we can utilize the PMU. Signed-off-by: Florian Fainelli <[email protected]> --- libop/op_cpu_type.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libop/op_cpu_type.c b/libop/op_cpu_type.c index 3aab4a2d418d..69e9098cf516 100644 --- a/libop/op_cpu_type.c +++ b/libop/op_cpu_type.c @@ -430,6 +430,8 @@ static op_cpu _get_arm_cpu_type(void) switch (cpuid) { case 0x00f: return op_get_cpu_number("arm/armv7-ca15"); + case 0x100: + return op_get_cpu_number("arm/armv8-ca53"); case 0x516: return op_get_cpu_number("arm/armv8-thunderx2"); } -- 2.34.1