diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-02-13 17:21:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 17:21:03 +0000 |
commit | fd6d90d8a65800ad1b45825f0290bdc4aee2ccbd (patch) | |
tree | 2cfc6a6b048a618066d854f61bc1bfea7e1f0e88 /lib/psci/psci_common.c | |
parent | 4d07e7821e19dc1ebc640f5264c2a769354c8b2d (diff) | |
parent | e5bbd16a2497162d413460880aba8c3416d32d6d (diff) |
Merge pull request #826 from dp-arm/dp/psci-stat-abstraction
Decouple PSCI stat residency calculation from PMF
Diffstat (limited to 'lib/psci/psci_common.c')
-rw-r--r-- | lib/psci/psci_common.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c index 68cdd6eb..822329e6 100644 --- a/lib/psci/psci_common.c +++ b/lib/psci/psci_common.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2017, 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: @@ -760,13 +760,7 @@ void psci_warmboot_entrypoint(void) cpu_idx); #if ENABLE_PSCI_STAT - /* - * Capture power up time-stamp. - * No cache maintenance is required as caches are off - * and writes are direct to the main memory. - */ - PMF_CAPTURE_TIMESTAMP(psci_svc, PSCI_STAT_ID_EXIT_LOW_PWR, - PMF_NO_CACHE_MAINT); + plat_psci_stat_accounting_stop(&state_info); #endif psci_get_target_local_pwr_states(end_pwrlvl, &state_info); @@ -801,7 +795,7 @@ void psci_warmboot_entrypoint(void) * Since caches are now enabled, it's necessary to do cache * maintenance before reading that same data. */ - psci_stats_update_pwr_up(end_pwrlvl, &state_info, PMF_CACHE_MAINT); + psci_stats_update_pwr_up(end_pwrlvl, &state_info); #endif /* |