]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/sched/cpufreq_schedutil.c
Merge branch 'x86-entry-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / kernel / sched / cpufreq_schedutil.c
index 867b4bb6d4beb541d1d9eb087711d1e52a446416..fdce9cfaca05b802c87a232d77903d6731809716 100644 (file)
@@ -263,9 +263,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;