diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2018-03-07 09:16:38 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-03-07 09:16:38 -0800 |
commit | 5f0137e535cbc8f5731a04e47c482b97a55a1fb0 (patch) | |
tree | e7bc23065aa614c0a3e7b46a7880ee6d739f7f94 /kernel/sched/sched.h | |
parent | bbfcd05a319db36471692fab4fbcbc4f6f68ca69 (diff) | |
parent | 3c443961073c821ab50bc1ded0558dd7bf6aeac6 (diff) |
Merge "sched: add sched_get_cpu_last_busy_time() API"
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 2b8453f1955f..b6cd12998f16 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1274,6 +1274,11 @@ static inline bool is_max_capacity_cpu(int cpu) return cpu_max_possible_capacity(cpu) == max_possible_capacity; } +static inline bool is_min_capacity_cpu(int cpu) +{ + return cpu_max_possible_capacity(cpu) == min_max_possible_capacity; +} + /* * 'load' is in reference to "best cpu" at its best frequency. * Scale that in reference to a given cpu, accounting for how bad it is |