mirror of
https://github.com/ARM-software/devlib.git
synced 2025-03-04 17:27:51 +00:00
Make cpu_frequency_devlib dependent on whether the "cpu_frequency" event has been selected rather than dependent on the cpufreq devlib module being loaded on the target. The old behavior became particularly problematic with the lazy loading of modules. However, it was never a reliable way of knowing if the user was interested in the frequency or not. Apply a similar mechanism for the extra idle state transitions only done if "cpu_idle" event is selected.