sched: Compute cpu capacity available at current frequency
authorMorten Rasmussen <morten.rasmussen@arm.com>
Tue, 13 Jan 2015 14:11:28 +0000 (14:11 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:18:50 +0000 (14:48 +0530)
commitccfcc4ed08c51b800a829053567af1ab661f4a07
tree030533e34eca5f60fc62c24619f82e770cc8dda6
parent70a528b9ada148dacc782e22fe7c0aaed9b6cfb7
sched: Compute cpu capacity available at current frequency

capacity_orig_of() returns the max available compute capacity of a cpu.
For scale-invariant utilization tracking and energy-aware scheduling
decisions it is useful to know the compute capacity available at the
current OPP of a cpu.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
kernel/sched/fair.c