Lines Matching refs:cpu

58 	unsigned int cpu, nr_cpus;  in proc_cpufreq_output()  local
67 for (cpu = 0; cpu < nr_cpus; cpu++) { in proc_cpufreq_output()
68 policy = cpufreq_get_policy(cpu); in proc_cpufreq_output()
72 if (cpufreq_get_hardware_limits(cpu, &min, &max)) { in proc_cpufreq_output()
79 cpu , policy->min, max ? min_pctg : 0, policy->max, in proc_cpufreq_output()
126 static int get_boost_mode_x86(unsigned int cpu) in get_boost_mode_x86() argument
132 ret = cpufreq_has_boost_support(cpu, &support, &active, &b_states); in get_boost_mode_x86()
135 " on CPU %d -- are you root?\n"), cpu); in get_boost_mode_x86()
155 ret = decode_pstates(cpu, b_states, pstates, &pstate_no); in get_boost_mode_x86()
181 intel_turbo_ratio = msr_intel_get_turbo_ratio(cpu); in get_boost_mode_x86()
210 static int get_boost_mode(unsigned int cpu) in get_boost_mode() argument
217 return get_boost_mode_x86(cpu); in get_boost_mode()
219 freqs = cpufreq_get_boost_frequencies(cpu); in get_boost_mode()
237 static int get_freq_kernel(unsigned int cpu, unsigned int human) in get_freq_kernel() argument
239 unsigned long freq = cpufreq_get_freq_kernel(cpu); in get_freq_kernel()
256 static int get_freq_hardware(unsigned int cpu, unsigned int human) in get_freq_hardware() argument
258 unsigned long freq = cpufreq_get_freq_hardware(cpu); in get_freq_hardware()
274 static int get_hardware_limits(unsigned int cpu, unsigned int human) in get_hardware_limits() argument
278 if (cpufreq_get_hardware_limits(cpu, &min, &max)) { in get_hardware_limits()
297 static int get_driver(unsigned int cpu) in get_driver() argument
299 char *driver = cpufreq_get_driver(cpu); in get_driver()
311 static int get_policy(unsigned int cpu) in get_policy() argument
313 struct cpufreq_policy *policy = cpufreq_get_policy(cpu); in get_policy()
333 static int get_available_governors(unsigned int cpu) in get_available_governors() argument
336 cpufreq_get_available_governors(cpu); in get_available_governors()
356 static int get_affected_cpus(unsigned int cpu) in get_affected_cpus() argument
358 struct cpufreq_affected_cpus *cpus = cpufreq_get_affected_cpus(cpu); in get_affected_cpus()
367 printf("%d ", cpus->cpu); in get_affected_cpus()
370 printf("%d\n", cpus->cpu); in get_affected_cpus()
377 static int get_related_cpus(unsigned int cpu) in get_related_cpus() argument
379 struct cpufreq_affected_cpus *cpus = cpufreq_get_related_cpus(cpu); in get_related_cpus()
388 printf("%d ", cpus->cpu); in get_related_cpus()
391 printf("%d\n", cpus->cpu); in get_related_cpus()
398 static int get_freq_stats(unsigned int cpu, unsigned int human) in get_freq_stats() argument
400 unsigned long total_trans = cpufreq_get_transitions(cpu); in get_freq_stats()
402 struct cpufreq_stats *stats = cpufreq_get_stats(cpu, &total_time); in get_freq_stats()
423 static int get_latency(unsigned int cpu, unsigned int human) in get_latency() argument
425 unsigned long latency = cpufreq_get_transition_latency(cpu); in get_latency()
443 static int get_perf_cap(unsigned int cpu) in get_perf_cap() argument
447 amd_pstate_show_perf_and_freq(cpu, no_rounding); in get_perf_cap()
452 static void debug_output_one(unsigned int cpu) in debug_output_one() argument
456 get_driver(cpu); in debug_output_one()
457 get_related_cpus(cpu); in debug_output_one()
458 get_affected_cpus(cpu); in debug_output_one()
459 get_latency(cpu, 1); in debug_output_one()
460 get_hardware_limits(cpu, 1); in debug_output_one()
462 freqs = cpufreq_get_available_frequencies(cpu); in debug_output_one()
475 get_available_governors(cpu); in debug_output_one()
476 get_policy(cpu); in debug_output_one()
477 if (get_freq_hardware(cpu, 1) < 0) in debug_output_one()
478 get_freq_kernel(cpu, 1); in debug_output_one()
479 get_boost_mode(cpu); in debug_output_one()
480 get_perf_cap(cpu); in debug_output_one()
508 unsigned int cpu = 0; in cmd_freq_info() local
592 for (cpu = bitmask_first(cpus_chosen); in cmd_freq_info()
593 cpu <= bitmask_last(cpus_chosen); cpu++) { in cmd_freq_info()
595 if (!bitmask_isbitset(cpus_chosen, cpu)) in cmd_freq_info()
598 printf(_("analyzing CPU %d:\n"), cpu); in cmd_freq_info()
600 if (sysfs_is_cpu_online(cpu) != 1) { in cmd_freq_info()
608 get_boost_mode(cpu); in cmd_freq_info()
611 debug_output_one(cpu); in cmd_freq_info()
614 ret = get_affected_cpus(cpu); in cmd_freq_info()
617 ret = get_related_cpus(cpu); in cmd_freq_info()
620 ret = get_available_governors(cpu); in cmd_freq_info()
623 ret = get_policy(cpu); in cmd_freq_info()
626 ret = get_driver(cpu); in cmd_freq_info()
629 ret = get_hardware_limits(cpu, human); in cmd_freq_info()
632 ret = get_freq_hardware(cpu, human); in cmd_freq_info()
635 ret = get_freq_kernel(cpu, human); in cmd_freq_info()
638 ret = get_freq_stats(cpu, human); in cmd_freq_info()
641 ret = get_latency(cpu, human); in cmd_freq_info()
644 ret = get_perf_cap(cpu); in cmd_freq_info()