commit | 1ab2969b54716ad93bce89529fd4214466726579 | [log] [tgz] |
---|---|---|
author | Manish Pandey <manish.pandey2@arm.com> | Tue Jan 12 15:15:32 2021 +0000 |
committer | Saheer Babu <saheer.babu@arm.com> | Tue Jan 21 12:25:01 2025 +0000 |
tree | ccddb957110f97e9dc725d9706dec7cc9dfdeb3d | |
parent | d33f289a77e452081d3f6acc5fb3bdf05fdb0c41 [diff] |
spm: use virtual counter for sp_sleep SPs(at S-EL1) can only access virtual counters which is calculated as: Virtual Count = Physical Count - <offset> Offset value is specified in the register CNTVOFF_EL2, which is set as 0 by hafnium. This patch changes sp_sleep() to use virtual counter instead of physical counter. Change-Id: I4245b5efbc0a982686e8fd22060110faa764a729 Signed-off-by: Manish Pandey <manish.pandey2@arm.com>