summaryrefslogtreecommitdiff
path: root/lib/psci/psci_off.c
diff options
context:
space:
mode:
authordavidcunado-arm <david.cunado@arm.com>2017-02-13 17:21:03 +0000
committerGitHub <noreply@github.com>2017-02-13 17:21:03 +0000
commitfd6d90d8a65800ad1b45825f0290bdc4aee2ccbd (patch)
tree2cfc6a6b048a618066d854f61bc1bfea7e1f0e88 /lib/psci/psci_off.c
parent4d07e7821e19dc1ebc640f5264c2a769354c8b2d (diff)
parente5bbd16a2497162d413460880aba8c3416d32d6d (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_off.c')
-rw-r--r--lib/psci/psci_off.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/psci/psci_off.c b/lib/psci/psci_off.c
index 897bf319..394aaa3b 100644
--- a/lib/psci/psci_off.c
+++ b/lib/psci/psci_off.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:
@@ -137,13 +137,7 @@ int psci_do_cpu_off(unsigned int end_pwrlvl)
psci_plat_pm_ops->pwr_domain_off(&state_info);
#if ENABLE_PSCI_STAT
- /*
- * Capture time-stamp while entering low power state.
- * No cache maintenance needed because caches are off
- * and writes are direct to main memory.
- */
- PMF_CAPTURE_TIMESTAMP(psci_svc, PSCI_STAT_ID_ENTER_LOW_PWR,
- PMF_NO_CACHE_MAINT);
+ plat_psci_stat_accounting_start(&state_info);
#endif
exit: