Tegra186: reduce complexity for the 'get_target_pwr_state' handler
This patch reduces the code complexity for the platform's 'get_target_pwr_state'
handler, by reducing the number of 'if' conditions and adding helper functions
to calculate power state for the cluster/system.

Tested with 'pmccabe'

Change-Id: I32fa4c814bd97f620f2003fa39f1bfceae563771
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
1 parent fcf23a1 commit 4e1830a99207b9c7dd6909f989fa01a4789ed05b
@Varun Wadekar Varun Wadekar authored on 24 May 2017
Showing 1 changed file
View
plat/nvidia/tegra/soc/t186/plat_psci_handlers.c