android.h 651 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Android scheduler hooks and modifications
  4. *
  5. * Put all of the android-specific scheduler hooks and changes
  6. * in this .h file to make merges and modifications easier. It's also
  7. * simpler to notice what is, and is not, an upstream change this way over time.
  8. */
  9. /*
  10. * task_may_not_preempt - check whether a task may not be preemptible soon
  11. */
  12. static inline bool task_may_not_preempt(struct task_struct *task, int cpu)
  13. {
  14. return false;
  15. }
  16. static inline bool uclamp_boosted(struct task_struct *p)
  17. {
  18. return false;
  19. }
  20. static inline bool uclamp_latency_sensitive(struct task_struct *p)
  21. {
  22. return false;
  23. }