diff options
author | Soby Mathew <soby.mathew@arm.com> | 2015-02-12 14:45:02 +0000 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2015-02-12 15:12:52 +0000 |
commit | 8c32bc26e7bc58f028c1b31dd226610d3d388237 (patch) | |
tree | 43232dd3b25fa1e04736a28185abe4ffe3e9a261 /services/std_svc/psci/psci_setup.c | |
parent | 68fc81743e8671312a98c364ba2b0d69429cf4c6 (diff) |
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
Diffstat (limited to 'services/std_svc/psci/psci_setup.c')
-rw-r--r-- | services/std_svc/psci/psci_setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); /* |