diff options
author | Soby Mathew <soby.mathew@arm.com> | 2015-07-08 21:45:46 +0100 |
---|---|---|
committer | Achin Gupta <achin.gupta@arm.com> | 2015-08-13 23:48:07 +0100 |
commit | fd650ff61b80a2155002def233ffddb439e3c071 (patch) | |
tree | 8f5007bc5301e1f8809a8fb2c74e7312a2605912 /bl32/tsp/tsp_timer.c | |
parent | a6bd5ffbb0b8e4c767190a69ed07f3db0a8052d8 (diff) | |
download | platform_external_arm-trusted-firmware-fd650ff61b80a2155002def233ffddb439e3c071.tar.gz platform_external_arm-trusted-firmware-fd650ff61b80a2155002def233ffddb439e3c071.tar.bz2 platform_external_arm-trusted-firmware-fd650ff61b80a2155002def233ffddb439e3c071.zip |
PSCI: Migrate SPDs and TSP to the new platform and framework API
The new PSCI frameworks mandates that the platform APIs and the various
frameworks in Trusted Firmware migrate away from MPIDR based core
identification to one based on core index. Deprecated versions of the old
APIs are still present to provide compatibility but their implementations
are not optimal. This patch migrates the various SPDs exisiting within
Trusted Firmware tree and TSP to the new APIs.
Change-Id: Ifc37e7071c5769b5ded21d0b6a071c8c4cab7836
Diffstat (limited to 'bl32/tsp/tsp_timer.c')
-rw-r--r-- | bl32/tsp/tsp_timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bl32/tsp/tsp_timer.c b/bl32/tsp/tsp_timer.c index f196021d0..7ca873401 100644 --- a/bl32/tsp/tsp_timer.c +++ b/bl32/tsp/tsp_timer.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2015, ARM Limited and Contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -92,7 +92,7 @@ void tsp_generic_timer_stop(void) ******************************************************************************/ void tsp_generic_timer_save(void) { - uint32_t linear_id = platform_get_core_pos(read_mpidr()); + uint32_t linear_id = plat_my_core_pos(); pcpu_timer_context[linear_id].cval = read_cntps_cval_el1(); pcpu_timer_context[linear_id].ctl = read_cntps_ctl_el1(); @@ -105,7 +105,7 @@ void tsp_generic_timer_save(void) ******************************************************************************/ void tsp_generic_timer_restore(void) { - uint32_t linear_id = platform_get_core_pos(read_mpidr()); + uint32_t linear_id = plat_my_core_pos(); write_cntps_cval_el1(pcpu_timer_context[linear_id].cval); write_cntps_ctl_el1(pcpu_timer_context[linear_id].ctl); |