diff options
author | Yatharth Kochar <yatharth.kochar@arm.com> | 2016-05-09 18:26:35 +0100 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2016-06-16 08:55:00 +0100 |
commit | 170fb93dec97568eec426148019b1670c0b17e7d (patch) | |
tree | 456974555d3eb0b9a704198235884b9dd2314545 /Makefile | |
parent | a31d8983f42153b0448103bdd47e1f4c9c093765 (diff) |
Add optional PSCI STAT residency & count functions
This patch adds following optional PSCI STAT functions:
- PSCI_STAT_RESIDENCY: This call returns the amount of time spent
in power_state in microseconds, by the node represented by the
`target_cpu` and the highest level of `power_state`.
- PSCI_STAT_COUNT: This call returns the number of times a
`power_state` has been used by the node represented by the
`target_cpu` and the highest power level of `power_state`.
These APIs provides residency statistics for power states that has
been used by the platform. They are implemented according to v1.0
of the PSCI specification.
By default this optional feature is disabled in the PSCI
implementation. To enable it, set the boolean flag
`ENABLE_PSCI_STAT` to 1. This also sets `ENABLE_PMF` to 1.
Change-Id: Ie62e9d37d6d416ccb1813acd7f616d1ddd3e8aff
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -106,6 +106,8 @@ SPIN_ON_BL1_EXIT := 0 PL011_GENERIC_UART := 0 # Flag to enable Performance Measurement Framework ENABLE_PMF := 0 +# Flag to enable PSCI STATs functionality +ENABLE_PSCI_STAT := 0 ################################################################################ # Checkpatch script options @@ -374,6 +376,10 @@ ifneq (${GENERATE_COT},0) endif endif +# Make sure PMF is enabled if PSCI STAT is enabled. +ifeq (${ENABLE_PSCI_STAT},1) +ENABLE_PMF := 1 +endif ################################################################################ # Auxiliary tools (fip_create, cert_create, etc) @@ -412,6 +418,7 @@ $(eval $(call assert_boolean,ENABLE_PLAT_COMPAT)) $(eval $(call assert_boolean,SPIN_ON_BL1_EXIT)) $(eval $(call assert_boolean,PL011_GENERIC_UART)) $(eval $(call assert_boolean,ENABLE_PMF)) +$(eval $(call assert_boolean,ENABLE_PSCI_STAT)) ################################################################################ @@ -440,6 +447,7 @@ $(eval $(call add_define,ENABLE_PLAT_COMPAT)) $(eval $(call add_define,SPIN_ON_BL1_EXIT)) $(eval $(call add_define,PL011_GENERIC_UART)) $(eval $(call add_define,ENABLE_PMF)) +$(eval $(call add_define,ENABLE_PSCI_STAT)) # Define the EL3_PAYLOAD_BASE flag only if it is provided. ifdef EL3_PAYLOAD_BASE $(eval $(call add_define,EL3_PAYLOAD_BASE)) @@ -451,7 +459,6 @@ else endif endif - ################################################################################ # Include BL specific makefiles ################################################################################ |