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
1 parent a31d898 commit 170fb93dec97568eec426148019b1670c0b17e7d
@Yatharth Kochar Yatharth Kochar authored on 9 May 2016
Soby Mathew committed on 16 Jun 2016
Showing 13 changed files
View
Makefile
View
bl31/bl31.mk
View
docs/firmware-design.md
View
docs/porting-guide.md
View
docs/user-guide.md
View
include/bl31/services/psci.h
View
services/std_svc/psci/psci_common.c
View
services/std_svc/psci/psci_main.c
View
services/std_svc/psci/psci_off.c
View
services/std_svc/psci/psci_private.h
View
services/std_svc/psci/psci_setup.c
View
services/std_svc/psci/psci_stat.c 0 → 100644
View
services/std_svc/psci/psci_suspend.c