summaryrefslogtreecommitdiff
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-03-07 09:16:38 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-03-07 09:16:38 -0800
commit5f0137e535cbc8f5731a04e47c482b97a55a1fb0 (patch)
treee7bc23065aa614c0a3e7b46a7880ee6d739f7f94 /kernel/sched/sched.h
parentbbfcd05a319db36471692fab4fbcbc4f6f68ca69 (diff)
parent3c443961073c821ab50bc1ded0558dd7bf6aeac6 (diff)
Merge "sched: add sched_get_cpu_last_busy_time() API"
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r--kernel/sched/sched.h5
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