From 8c32bc26e7bc58f028c1b31dd226610d3d388237 Mon Sep 17 00:00:00 2001 From: Soby Mathew Date: Thu, 12 Feb 2015 14:45:02 +0000 Subject: Export maximum affinity using PLATFORM_MAX_AFFLVL macro This patch removes the plat_get_max_afflvl() platform API and instead replaces it with a platform macro PLATFORM_MAX_AFFLVL. This is done because the maximum affinity level for a platform is a static value and it is more efficient for it to be defined as a platform macro. NOTE: PLATFORM PORTS NEED TO BE UPDATED ON MERGE OF THIS COMMIT Fixes ARM-Software/tf-issues#265 Change-Id: I31d89b30c2ccda30d28271154d869060d50df7bf --- services/std_svc/psci/psci_setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services/std_svc/psci/psci_setup.c') diff --git a/services/std_svc/psci/psci_setup.c b/services/std_svc/psci/psci_setup.c index 02a87865..5ff24d5b 100644 --- a/services/std_svc/psci/psci_setup.c +++ b/services/std_svc/psci/psci_setup.c @@ -107,7 +107,7 @@ aff_map_node_t *psci_get_aff_map_node(unsigned long mpidr, int aff_lvl) { int rc; - if (aff_lvl > get_max_afflvl()) + if (aff_lvl > PLATFORM_MAX_AFFLVL) return NULL; /* Right shift the mpidr to the required affinity level */ @@ -320,7 +320,7 @@ int32_t psci_setup(void) psci_plat_pm_ops = NULL; /* Find out the maximum affinity level that the platform implements */ - max_afflvl = get_max_afflvl(); + max_afflvl = PLATFORM_MAX_AFFLVL; assert(max_afflvl <= MPIDR_MAX_AFFLVL); /* -- cgit