cpufreq_limit.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * drivers/cpufreq/cpufreq_limit.c
  3. *
  4. * Remade according to cpufreq change
  5. * (refer to commit df0eea4488081e0698b0b58ccd1e8c8823e22841
  6. * 18c49926c4bf4915e5194d1de3299c0537229f9f)
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __LINUX_CPUFREQ_LIMIT_H__
  13. #define __LINUX_CPUFREQ_LIMIT_H__
  14. /* sched boost type from kernel/sched/sched.h */
  15. extern int sched_set_boost(int enable);
  16. #define NO_BOOST (CONSERVATIVE_BOOST * -1)
  17. #define FULL_THROTTLE_BOOST 1
  18. #define CONSERVATIVE_BOOST 2
  19. #define RESTRAINED_BOOST 3
  20. /* voltage based freq table */
  21. #define PRIME_CPU 0
  22. #define GOLD_CPU 1
  23. #define NUM_THM_CPUS 2
  24. #define NUM_MAX_FREQS 40
  25. struct freq_voltage_base {
  26. int count;
  27. unsigned int table[NUM_THM_CPUS][NUM_MAX_FREQS];
  28. };
  29. enum {
  30. CFLM_USERSPACE = 0, /* user(/sys/power/cpufreq*limit) */
  31. CFLM_TOUCH = 1, /* touch */
  32. CFLM_FINGER = 2, /* fingerprint */
  33. CFLM_ARGOS = 3, /* argos */
  34. CFLM_MAX_ITEM
  35. };
  36. #endif /* __LINUX_CPUFREQ_LIMIT_H__ */