commit | 1dd4bd14209e0a7d4889cfec76e64cae2fcc0aca | [log] [tgz] |
---|---|---|
author | Zhao Wei Liew <zhaoweiliew@gmail.com> | Fri Nov 02 00:33:14 2018 +0000 |
committer | Vaughn N <rwaterspf1@floydco.net> | Sun May 19 20:46:47 2019 -0400 |
tree | ff222861208755747d717e410c25b0a0d1949259 | |
parent | 43aaee47cbe6ce7efca32bf04ae84e63cf2e95f6 [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