Loading arch/powerpc/platforms/cell/cpufreq_spudemand.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -49,7 +49,7 @@ static int calc_freq(struct spu_gov_info_struct *info) cpu = info->policy->cpu; cpu = info->policy->cpu; busy_spus = atomic_read(&cbe_spu_info[cpu_to_node(cpu)].busy_spus); 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", pr_debug("cpu %d: busy_spus=%d, info->busy_spus=%ld\n", cpu, busy_spus, info->busy_spus); cpu, busy_spus, info->busy_spus); Loading arch/powerpc/platforms/cell/spufs/sched.c +3 −6 Original line number Original line Diff line number Diff line Loading @@ -987,9 +987,9 @@ static void spu_calc_load(void) unsigned long active_tasks; /* fixed-point */ unsigned long active_tasks; /* fixed-point */ active_tasks = count_active_contexts() * FIXED_1; active_tasks = count_active_contexts() * FIXED_1; CALC_LOAD(spu_avenrun[0], EXP_1, active_tasks); spu_avenrun[0] = calc_load(spu_avenrun[0], EXP_1, active_tasks); CALC_LOAD(spu_avenrun[1], EXP_5, active_tasks); spu_avenrun[1] = calc_load(spu_avenrun[1], EXP_5, active_tasks); CALC_LOAD(spu_avenrun[2], EXP_15, active_tasks); spu_avenrun[2] = calc_load(spu_avenrun[2], EXP_15, active_tasks); } } static void spusched_wake(struct timer_list *unused) static void spusched_wake(struct timer_list *unused) Loading Loading @@ -1071,9 +1071,6 @@ void spuctx_switch_state(struct spu_context *ctx, } } } } #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) static int show_spu_loadavg(struct seq_file *s, void *private) static int show_spu_loadavg(struct seq_file *s, void *private) { { int a, b, c; int a, b, c; Loading arch/s390/appldata/appldata_os.c +0 −4 Original line number Original line Diff line number Diff line Loading @@ -25,10 +25,6 @@ #include "appldata.h" #include "appldata.h" #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) /* /* * OS data * OS data * * Loading drivers/cpuidle/governors/menu.c +0 −4 Original line number Original line Diff line number Diff line Loading @@ -131,10 +131,6 @@ struct menu_device { int interval_ptr; int interval_ptr; }; }; #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) static inline int get_loadavg(unsigned long load) static inline int get_loadavg(unsigned long load) { { return LOAD_INT(load) * 10 + LOAD_FRAC(load) / 10; return LOAD_INT(load) * 10 + LOAD_FRAC(load) / 10; Loading fs/proc/loadavg.c +0 −3 Original line number Original line Diff line number Diff line Loading @@ -10,9 +10,6 @@ #include <linux/seqlock.h> #include <linux/seqlock.h> #include <linux/time.h> #include <linux/time.h> #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) static int loadavg_proc_show(struct seq_file *m, void *v) static int loadavg_proc_show(struct seq_file *m, void *v) { { unsigned long avnrun[3]; unsigned long avnrun[3]; Loading Loading
arch/powerpc/platforms/cell/cpufreq_spudemand.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -49,7 +49,7 @@ static int calc_freq(struct spu_gov_info_struct *info) cpu = info->policy->cpu; cpu = info->policy->cpu; busy_spus = atomic_read(&cbe_spu_info[cpu_to_node(cpu)].busy_spus); 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", pr_debug("cpu %d: busy_spus=%d, info->busy_spus=%ld\n", cpu, busy_spus, info->busy_spus); cpu, busy_spus, info->busy_spus); Loading
arch/powerpc/platforms/cell/spufs/sched.c +3 −6 Original line number Original line Diff line number Diff line Loading @@ -987,9 +987,9 @@ static void spu_calc_load(void) unsigned long active_tasks; /* fixed-point */ unsigned long active_tasks; /* fixed-point */ active_tasks = count_active_contexts() * FIXED_1; active_tasks = count_active_contexts() * FIXED_1; CALC_LOAD(spu_avenrun[0], EXP_1, active_tasks); spu_avenrun[0] = calc_load(spu_avenrun[0], EXP_1, active_tasks); CALC_LOAD(spu_avenrun[1], EXP_5, active_tasks); spu_avenrun[1] = calc_load(spu_avenrun[1], EXP_5, active_tasks); CALC_LOAD(spu_avenrun[2], EXP_15, active_tasks); spu_avenrun[2] = calc_load(spu_avenrun[2], EXP_15, active_tasks); } } static void spusched_wake(struct timer_list *unused) static void spusched_wake(struct timer_list *unused) Loading Loading @@ -1071,9 +1071,6 @@ void spuctx_switch_state(struct spu_context *ctx, } } } } #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) static int show_spu_loadavg(struct seq_file *s, void *private) static int show_spu_loadavg(struct seq_file *s, void *private) { { int a, b, c; int a, b, c; Loading
arch/s390/appldata/appldata_os.c +0 −4 Original line number Original line Diff line number Diff line Loading @@ -25,10 +25,6 @@ #include "appldata.h" #include "appldata.h" #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) /* /* * OS data * OS data * * Loading
drivers/cpuidle/governors/menu.c +0 −4 Original line number Original line Diff line number Diff line Loading @@ -131,10 +131,6 @@ struct menu_device { int interval_ptr; int interval_ptr; }; }; #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) static inline int get_loadavg(unsigned long load) static inline int get_loadavg(unsigned long load) { { return LOAD_INT(load) * 10 + LOAD_FRAC(load) / 10; return LOAD_INT(load) * 10 + LOAD_FRAC(load) / 10; Loading
fs/proc/loadavg.c +0 −3 Original line number Original line Diff line number Diff line Loading @@ -10,9 +10,6 @@ #include <linux/seqlock.h> #include <linux/seqlock.h> #include <linux/time.h> #include <linux/time.h> #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) static int loadavg_proc_show(struct seq_file *m, void *v) static int loadavg_proc_show(struct seq_file *m, void *v) { { unsigned long avnrun[3]; unsigned long avnrun[3]; Loading