commit | 143f8079c5a81ff669fba1496e7c98fcd42a1d24 | [log] [tgz] |
---|---|---|
author | Zhao Wei Liew <zhaoweiliew@gmail.com> | Fri Nov 02 00:33:14 2018 +0000 |
committer | Bruno Martins <bgcngm@gmail.com> | Wed Nov 07 17:46:07 2018 +0100 |
tree | c1bc57c8acac8a5213a178ee95b73cd7421035ad | |
parent | 591f59036fdb29c49139dfde1f5447517e9748b6 [diff] |
Cache SOC ID checks for future queries Currently, get_soc_id() is queried on every SOC ID check in the SDM660, MSM8916, and MSM8974-family HALs. This results in extraneous file operations on every SOC ID check. Cache the result of get_soc_id() during the first query to reduce the number of file operations being made. This also brings back the behaviour in LineageOS 15.1 when the HALs were still stored in device/qcom/common. Change-Id: Ic17dbf12e7f9ecdb47b73a580f467df9ad630aa0