Lines Matching +full:max +full:- +full:frequency

1 // SPDX-License-Identifier: GPL-2.0-only
3 * (C) 2004-2009 Dominik Brodowski <linux@dominikbrodowski.de>
39 value[LINE_LEN - 1] = '\0'; in count_cpus()
40 if (strlen(value) < (LINE_LEN - 2)) in count_cpus()
62 unsigned long min, max; in proc_cpufreq_output() local
64 printf(_(" minimum CPU frequency - maximum CPU frequency - governor\n")); in proc_cpufreq_output()
72 if (cpufreq_get_hardware_limits(cpu, &min, &max)) { in proc_cpufreq_output()
73 max = 0; in proc_cpufreq_output()
75 min_pctg = (policy->min * 100) / max; in proc_cpufreq_output()
76 max_pctg = (policy->max * 100) / max; in proc_cpufreq_output()
78 printf("CPU%3d %9lu kHz (%3d %%) - %9lu kHz (%3d %%) - %s\n", in proc_cpufreq_output()
79 cpu , policy->min, max ? min_pctg : 0, policy->max, in proc_cpufreq_output()
80 max ? max_pctg : 0, policy->governor); in proc_cpufreq_output()
172 " on CPU %d -- are you root?\n"), cpu); in get_boost_mode_x86()
199 printf(_(" Pstate-Pb%d: %luMHz (boost state)" in get_boost_mode_x86()
202 printf(_(" Pstate-P%d: %luMHz\n"), in get_boost_mode_x86()
203 i - b_states, pstates[i]); in get_boost_mode_x86()
216 dprint (" Ratio: 0x%llx - bclk: %f\n", in get_boost_mode_x86()
221 printf(_(" %.0f MHz max turbo 4 active cores\n"), in get_boost_mode_x86()
226 printf(_(" %.0f MHz max turbo 3 active cores\n"), in get_boost_mode_x86()
231 printf(_(" %.0f MHz max turbo 2 active cores\n"), in get_boost_mode_x86()
236 printf(_(" %.0f MHz max turbo 1 active cores\n"), in get_boost_mode_x86()
242 /* --boost / -b */
255 printf(_(" boost frequency steps: ")); in get_boost_mode()
256 while (freqs->next) { in get_boost_mode()
257 print_speed(freqs->frequency); in get_boost_mode()
259 freqs = freqs->next; in get_boost_mode()
261 print_speed(freqs->frequency); in get_boost_mode()
269 /* --freq / -f */
274 printf(_(" current CPU frequency: ")); in get_freq_kernel()
277 return -EINVAL; in get_freq_kernel()
288 /* --hwfreq / -w */
293 printf(_(" current CPU frequency: ")); in get_freq_hardware()
296 return -EINVAL; in get_freq_hardware()
306 /* --hwlimits / -l */
310 unsigned long min, max; in get_hardware_limits() local
312 if (cpufreq_get_hardware_limits(cpu, &min, &max)) { in get_hardware_limits()
314 return -EINVAL; in get_hardware_limits()
320 printf(" - "); in get_hardware_limits()
321 print_speed(max); in get_hardware_limits()
324 printf("%lu %lu\n", min, max); in get_hardware_limits()
329 /* --driver / -d */
336 return -EINVAL; in get_driver()
343 /* --policy / -p */
350 return -EINVAL; in get_policy()
352 printf(_(" current policy: frequency should be within ")); in get_policy()
353 print_speed(policy->min); in get_policy()
355 print_speed(policy->max); in get_policy()
360 policy->governor); in get_policy()
365 /* --governors / -g */
375 return -EINVAL; in get_available_governors()
378 while (governors->next) { in get_available_governors()
379 printf("%s ", governors->governor); in get_available_governors()
380 governors = governors->next; in get_available_governors()
382 printf("%s\n", governors->governor); in get_available_governors()
388 /* --affected-cpus / -a */
394 printf(_(" CPUs which need to have their frequency coordinated by software: ")); in get_affected_cpus()
397 return -EINVAL; in get_affected_cpus()
400 while (cpus->next) { in get_affected_cpus()
401 printf("%d ", cpus->cpu); in get_affected_cpus()
402 cpus = cpus->next; in get_affected_cpus()
404 printf("%d\n", cpus->cpu); in get_affected_cpus()
409 /* --related-cpus / -r */
415 printf(_(" CPUs which run at the same hardware frequency: ")); in get_related_cpus()
418 return -EINVAL; in get_related_cpus()
421 while (cpus->next) { in get_related_cpus()
422 printf("%d ", cpus->cpu); in get_related_cpus()
423 cpus = cpus->next; in get_related_cpus()
425 printf("%d\n", cpus->cpu); in get_related_cpus()
430 /* --stats / -s */
439 print_speed(stats->frequency); in get_freq_stats()
441 (100.0 * stats->time_in_state) / total_time); in get_freq_stats()
444 stats->frequency, stats->time_in_state); in get_freq_stats()
445 stats = stats->next; in get_freq_stats()
455 /* --latency / -y */
464 return -EINVAL; in get_latency()
487 printf(_(" available frequency steps: ")); in debug_output_one()
488 while (freqs->next) { in debug_output_one()
489 print_speed(freqs->frequency); in debug_output_one()
491 freqs = freqs->next; in debug_output_one()
493 print_speed(freqs->frequency); in debug_output_one()
514 {"related-cpus", no_argument, NULL, 'r'},
515 {"affected-cpus", no_argument, NULL, 'a'},
520 {"no-rounding", no_argument, NULL, 'n'},
541 case -1: in cmd_freq_info()
558 output_param = -1; in cmd_freq_info()
566 output_param = -1; in cmd_freq_info()
585 "combined with passing a --cpu argument\n")); in cmd_freq_info()
586 return -EINVAL; in cmd_freq_info()
600 case -1: in cmd_freq_info()
601 printf(_("You can't specify more than one --cpu parameter and/or\n" in cmd_freq_info()
602 "more than one output-specific argument\n")); in cmd_freq_info()
603 return -EINVAL; in cmd_freq_info()
606 return -EINVAL; in cmd_freq_info()