mt_hotplug_strategy.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright (c) 2015 MediaTek Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef __MT_HOTPLUG_STRATEGY_H__
  15. #define __MT_HOTPLUG_STRATEGY_H__
  16. enum hps_base_type_e {
  17. BASE_PERF_SERV = 0,
  18. BASE_WIFI,
  19. BASE_COUNT
  20. };
  21. enum hps_limit_type_e {
  22. LIMIT_THERMAL = 0,
  23. LIMIT_LOW_BATTERY,
  24. LIMIT_ULTRA_POWER_SAVING,
  25. LIMIT_POWER_SERV,
  26. LIMIT_COUNT
  27. };
  28. extern int hps_get_enabled(unsigned int *enabled_ptr);
  29. extern int hps_set_enabled(unsigned int enabled);
  30. extern int hps_get_cpu_num_base(enum hps_base_type_e type,
  31. unsigned int *little_cpu_ptr,
  32. unsigned int *big_cpu_ptr);
  33. extern int hps_set_cpu_num_base(enum hps_base_type_e type,
  34. unsigned int little_cpu,
  35. unsigned int big_cpu);
  36. extern int hps_get_cpu_num_limit(enum hps_limit_type_e type,
  37. unsigned int *little_cpu_ptr,
  38. unsigned int *big_cpu_ptr);
  39. extern int hps_set_cpu_num_limit(enum hps_limit_type_e type,
  40. unsigned int little_cpu,
  41. unsigned int big_cpu);
  42. extern int hps_get_tlp(unsigned int *tlp_ptr);
  43. extern int hps_get_num_possible_cpus(unsigned int *little_cpu_ptr,
  44. unsigned int *big_cpu_ptr);
  45. extern int hps_get_num_online_cpus(unsigned int *little_cpu_ptr,
  46. unsigned int *big_cpu_ptr);
  47. #endif