Lines Matching defs:load
95 static int read_usage_times(int *load, int nonice);
145 * This function returns summary load of all CPUs. It was made so
149 * is nonzero, only user+sys+intr time will be counted as load; any
153 read_usage_times(int *load, int nonice)
180 if (load) {
181 *load = 0;
195 *load += 100 - excl * 100 / total;
579 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load;
682 /* Check if we can read the load and supported freqs. */
868 if (read_usage_times(&load, nonice)) {
875 if (load > cpu_running_mark) {
876 if (load > 95 || load > cpu_running_mark * 2)
879 freq = freq * load / cpu_running_mark;
882 } else if (load < cpu_idle_mark &&
883 curfreq * load < freqs[get_freq_id(
891 if (load > cpu_running_mark / 2) {
892 if (load > 95 || load > cpu_running_mark)
895 freq = freq * load * 2 / cpu_running_mark;
898 } else if (load < cpu_idle_mark / 2 &&
899 curfreq * load < freqs[get_freq_id(
908 printf("load %3d%%, current freq %4d MHz (%2d), wanted freq %4d MHz\n",
909 load, curfreq, i, freq);