commit | e540057eb35b49b7cb14ba96793c9252072887ed | [log] [tgz] |
---|---|---|
author | Manish Pandey <manish.pandey2@arm.com> | Tue Jan 12 15:15:32 2021 +0000 |
committer | Manish Pandey <manish.pandey2@arm.com> | Fri Feb 19 15:36:21 2021 +0000 |
tree | ccddb957110f97e9dc725d9706dec7cc9dfdeb3d | |
parent | 04ec1d66850371cb70ce1173bb629affde21f8b6 [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>