qcom-cpufreq-hw.h 555 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020-2021 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef _LINUX_QCOM_CPUFREQ_HW_H
  6. #define _LINUX_QCOM_CPUFREQ_HW_H
  7. /*
  8. * We can take this out if we could move the OSM cycle
  9. * counter to WALT scheduler?
  10. */
  11. #if IS_ENABLED(CONFIG_ARM_QCOM_CPUFREQ_HW)
  12. extern u64 qcom_cpufreq_get_cpu_cycle_counter(int cpu);
  13. #else
  14. static inline u64 qcom_cpufreq_get_cpu_cycle_counter(int cpu)
  15. {
  16. return U64_MAX;
  17. }
  18. #endif /*CONFIG_ARM_QCOM_CPUFREQ_HW*/
  19. #endif /* _LINUX_QCOM_CPUFREQ_HW_H */