|
@@ -147,7 +147,9 @@ static unsigned int get_next_freq(struct sugov_cpu *sg_cpu, unsigned long util,
|
|
|
static void sugov_get_util(unsigned long *util, unsigned long *max)
|
|
|
{
|
|
|
struct rq *rq = this_rq();
|
|
|
- unsigned long cfs_max = rq->cpu_capacity_orig;
|
|
|
+ unsigned long cfs_max;
|
|
|
+
|
|
|
+ cfs_max = arch_scale_cpu_capacity(NULL, smp_processor_id());
|
|
|
|
|
|
*util = min(rq->cfs.avg.util_avg, cfs_max);
|
|
|
*max = cfs_max;
|