Merge tag 'pm-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
[sfrench/cifs-2.6.git] / kernel / sched / cpufreq_schedutil.c
index b03ca2f73713dfb516f5644bbd62d59151d6cd15..86800b4d5453f00e5c2c46b09791dc51242ef663 100644 (file)
@@ -268,9 +268,9 @@ unsigned long schedutil_cpu_util(int cpu, unsigned long util_cfs,
         * irq metric. Because IRQ/steal time is hidden from the task clock we
         * need to scale the task numbers:
         *
-        *              1 - irq
-        *   U' = irq + ------- * U
-        *                max
+        *              max - irq
+        *   U' = irq + --------- * U
+        *                 max
         */
        util = scale_irq_capacity(util, irq, max);
        util += irq;