diff options
author | Chandni Cherukuri <chandni.cherukuri@arm.com> | 2018-08-16 13:45:17 +0530 |
---|---|---|
committer | Chandni Cherukuri <chandni.cherukuri@arm.com> | 2018-11-27 10:32:55 +0530 |
commit | bd3d7b4ac4a0500c9e97e6e08ae6e99bb81c4dfb (patch) | |
tree | e694ea66e08682ba57fe1d285db349a81e7e2f5b | |
parent | 0e27faf4841beadd357dcc689fbf64a82a01eaeb (diff) |
plat/arm/sgi: override weak implementation of plat_arm_get_cpu_pe_count
To support platforms which are based on multi-threaded CPUs, override
the weak implementation of plat_arm_get_cpu_pe_count function to return
the number of threads supported by the CPU used in the platform.
Change-Id: Ia680773f1277b17e2d3d2414d87943dcece33e89
Signed-off-by: Chandni Cherukuri <chandni.cherukuri@arm.com>
-rw-r--r-- | plat/arm/css/sgi/sgi_topology.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plat/arm/css/sgi/sgi_topology.c b/plat/arm/css/sgi/sgi_topology.c index 3b7a57ad..e524f11f 100644 --- a/plat/arm/css/sgi/sgi_topology.c +++ b/plat/arm/css/sgi/sgi_topology.c @@ -44,3 +44,11 @@ const uint32_t plat_css_core_pos_to_scmi_dmn_id_map[32] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, \ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 }; + +/****************************************************************************** + * Return the number of PE's supported by the CPU. + *****************************************************************************/ +unsigned int plat_arm_get_cpu_pe_count(u_register_t mpidr) +{ + return CSS_SGI_MAX_PE_PER_CPU; +} |