sched: loadavg: consolidate LOAD_INT, LOAD_FRAC, CALC_LOAD
[linux-2.6-block.git] / arch / powerpc / platforms / cell / cpufreq_spudemand.c
index 882944c36ef571c21132c21c2429f65bd3ccea7b..5d8e8b6bb1cc9a7bcfd1ecb735e023221c1b0df7 100644 (file)
@@ -49,7 +49,7 @@ static int calc_freq(struct spu_gov_info_struct *info)
        cpu = info->policy->cpu;
        busy_spus = atomic_read(&cbe_spu_info[cpu_to_node(cpu)].busy_spus);
 
-       CALC_LOAD(info->busy_spus, EXP, busy_spus * FIXED_1);
+       info->busy_spus = calc_load(info->busy_spus, EXP, busy_spus * FIXED_1);
        pr_debug("cpu %d: busy_spus=%d, info->busy_spus=%ld\n",
                        cpu, busy_spus, info->busy_spus);