/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | Makefile | 3 obj-$(CONFIG_CPU_FREQ) += cpufreq.o freq_table.o 17 obj-$(CONFIG_CPUFREQ_DT) += cpufreq-dt.o 18 obj-$(CONFIG_CPUFREQ_DT_PLATDEV) += cpufreq-dt-platdev.o 27 # K8 systems. This is still the case but acpi-cpufreq errors out so that 31 obj-$(CONFIG_X86_ACPI_CPUFREQ) += acpi-cpufreq.o 35 obj-$(CONFIG_X86_PCC_CPUFREQ) += pcc-cpufreq.o 49 obj-$(CONFIG_X86_CPUFREQ_NFORCE2) += cpufreq-nforce2.o 55 obj-$(CONFIG_ARM_APPLE_SOC_CPUFREQ) += apple-soc-cpufreq.o 56 obj-$(CONFIG_ARM_ARMADA_37XX_CPUFREQ) += armada-37xx-cpufreq.o 57 obj-$(CONFIG_ARM_ARMADA_8K_CPUFREQ) += armada-8k-cpufreq [all...] |
H A D | davinci-cpufreq.c | 19 #include <linux/cpufreq.h> 23 #include <linux/platform_data/davinci-cpufreq.h> 33 static struct davinci_cpufreq cpufreq; variable 37 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_target() 38 struct clk *armclk = cpufreq.armclk; in davinci_target() 56 if (cpufreq.asyncclk) { in davinci_target() 57 ret = clk_set_rate(cpufreq.asyncclk, cpufreq.asyncrate); in davinci_target() 72 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_cpu_init() 85 policy->clk = cpufreq in davinci_cpu_init() [all...] |
H A D | pxa3xx-cpufreq.c | 10 #include <linux/cpufreq.h> 72 #define OP(cpufreq, _xl, _xn, _hss, _dmc, _smc, _sfl, _dfi, vcore, vsram) \ 74 .cpufreq_mhz = cpufreq, \ 216 .name = "pxa3xx-cpufreq",
|
H A D | cpufreq_governor.h | 3 * drivers/cpufreq/cpufreq_governor.h 19 #include <linux/cpufreq.h> 20 #include <linux/sched/cpufreq.h>
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | davinci-cpufreq.c | 19 #include <linux/cpufreq.h> 23 #include <linux/platform_data/davinci-cpufreq.h> 33 static struct davinci_cpufreq cpufreq; variable 37 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_target() 38 struct clk *armclk = cpufreq.armclk; in davinci_target() 56 if (cpufreq.asyncclk) { in davinci_target() 57 ret = clk_set_rate(cpufreq.asyncclk, cpufreq.asyncrate); in davinci_target() 72 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_cpu_init() 85 policy->clk = cpufreq in davinci_cpu_init() [all...] |
H A D | loongson1-cpufreq.c | 14 #include <linux/cpufreq.h> 21 #include <cpufreq.h> 34 static struct ls1x_cpufreq *cpufreq; variable 67 clk_set_parent(policy->clk, cpufreq->osc_clk); in ls1x_cpufreq_target() 72 clk_set_rate(cpufreq->mux_clk, new_freq * 1000); in ls1x_cpufreq_target() 73 clk_set_parent(policy->clk, cpufreq->mux_clk); in ls1x_cpufreq_target() 86 pll_freq = clk_get_rate(cpufreq->pll_clk) / 1000; in ls1x_cpufreq_init() 95 if ((freq < cpufreq->min_freq) || (freq > cpufreq->max_freq)) in ls1x_cpufreq_init() 100 "cpufreq tabl in ls1x_cpufreq_init() [all...] |
H A D | pxa3xx-cpufreq.c | 10 #include <linux/cpufreq.h> 51 #define OP(cpufreq, _xl, _xn, _hss, _dmc, _smc, _sfl, _dfi, vcore, vsram) \ 53 .cpufreq_mhz = cpufreq, \ 207 .name = "pxa3xx-cpufreq",
|
H A D | s3c2410-cpufreq.c | 14 #include <linux/cpufreq.h> 19 #include <linux/soc/samsung/s3c-cpufreq-core.h>
|
H A D | s3c24xx-cpufreq-debugfs.c | 16 #include <linux/cpufreq.h> 21 #include <linux/soc/samsung/s3c-cpufreq-core.h> 144 dbgfs_root = debugfs_create_dir("s3c-cpufreq", NULL); in s3c_freq_debugfs_init()
|
H A D | cpufreq_governor.h | 3 * drivers/cpufreq/cpufreq_governor.h 19 #include <linux/cpufreq.h> 20 #include <linux/sched/cpufreq.h>
|
/kernel/linux/linux-5.10/tools/power/cpupower/bench/ |
H A D | cpufreq-bench_script.sh | 7 # Ondemand up_threshold and sampling rate test script for cpufreq-bench 30 echo $up_threshold >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 31 echo $sampling_rate >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 32 up_threshold_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold) 33 sampling_rate_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate) 48 cpufreq-bench -o /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate} 58 command="cpufreq-bench_plot.sh -o \"sampling_rate_${SAMPLING_RATE}_up_threshold_${up_threshold}\" -t \"Ondemand sampling_rate: ${SAMPLING_RATE} comparison - Up_threshold: $up_threshold %\"" 60 command="${command} /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}/* \"sampling_rate = $sampling_rate\"" 68 command="cpufreq [all...] |
/kernel/linux/linux-6.6/tools/power/cpupower/bench/ |
H A D | cpufreq-bench_script.sh | 7 # Ondemand up_threshold and sampling rate test script for cpufreq-bench 30 echo $up_threshold >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 31 echo $sampling_rate >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 32 up_threshold_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold) 33 sampling_rate_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate) 48 cpufreq-bench -o /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate} 58 command="cpufreq-bench_plot.sh -o \"sampling_rate_${SAMPLING_RATE}_up_threshold_${up_threshold}\" -t \"Ondemand sampling_rate: ${SAMPLING_RATE} comparison - Up_threshold: $up_threshold %\"" 60 command="${command} /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}/* \"sampling_rate = $sampling_rate\"" 68 command="cpufreq [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A D | tsn_lib.sh | 113 if ! [ -d /sys/bus/cpu/devices/cpu${cpu}/cpufreq ]; then 119 declare -g "${freq}=$(cat /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_min_freq)" 120 declare -g "${governor}=$(cat /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_governor)" 122 cat /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_max_freq > \ 123 /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_min_freq 125 /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_governor 134 if ! [ -d /sys/bus/cpu/devices/cpu${cpu}/cpufreq ]; then 138 echo "${!freq}" > /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_min_freq 140 /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_governor
|
/kernel/linux/linux-5.10/tools/testing/selftests/cpufreq/ |
H A D | main.sh | 5 source cpufreq.sh 24 [-t <basic: Basic cpufreq testing 31 sptest4: CPU hotplugs with updates to cpufreq files.>] 57 CPUFREQROOT="$CPUROOT/cpufreq" 64 if ! ls $CPUROOT/cpufreq > /dev/null 2>&1; then 65 echo $msg cpufreq directory not available in sysfs >&2 104 # Check if CPUs are managed by cpufreq or not 108 echo "No cpu is managed by cpufreq core, exiting" 140 echo "No cpu is managed by cpufreq core, exiting" 183 dmesg | grep cpufreq >> [all...] |
H A D | cpu.sh | 13 source cpufreq.sh 67 # Prints warning for all CPUs with missing cpufreq directory 73 # Counts CPUs with cpufreq directories 79 if [ -d $CPUROOT/$cpu/cpufreq ]; then
|
H A D | governor.sh | 14 source cpufreq.sh 79 echo $2 > $CPUROOT/$1/cpufreq/scaling_governor 128 # Exit if cpu isn't managed by cpufreq core
|
H A D | cpufreq.sh | 17 if [ ! -d $CPUROOT/$1/cpufreq ]; then 18 printf "Warning: No cpufreq directory present for $1\n" 24 if [ -d $CPUROOT/$1/cpufreq ]; then 25 printf "Warning: cpufreq directory present for $1\n" 173 # Basic cpufreq tests 181 printf "No cpu is managed by cpufreq core, exiting\n" 187 # Detect & print which CPUs are not managed by cpufreq 190 # read/update all cpufreq files 238 printf "Do basic tests after finishing $1 to verify cpufreq state\n\n"
|
/kernel/linux/linux-6.6/tools/testing/selftests/cpufreq/ |
H A D | main.sh | 5 source cpufreq.sh 24 [-t <basic: Basic cpufreq testing 31 sptest4: CPU hotplugs with updates to cpufreq files.>] 57 CPUFREQROOT="$CPUROOT/cpufreq" 64 if ! ls $CPUROOT/cpufreq > /dev/null 2>&1; then 65 echo $msg cpufreq directory not available in sysfs >&2 104 # Check if CPUs are managed by cpufreq or not 108 echo "No cpu is managed by cpufreq core, exiting" 140 echo "No cpu is managed by cpufreq core, exiting" 183 dmesg | grep cpufreq >> [all...] |
H A D | cpu.sh | 13 source cpufreq.sh 67 # Prints warning for all CPUs with missing cpufreq directory 73 # Counts CPUs with cpufreq directories 79 if [ -d $CPUROOT/$cpu/cpufreq ]; then
|
H A D | governor.sh | 14 source cpufreq.sh 79 echo $2 > $CPUROOT/$1/cpufreq/scaling_governor 128 # Exit if cpu isn't managed by cpufreq core
|
H A D | cpufreq.sh | 17 if [ ! -d $CPUROOT/$1/cpufreq ]; then 18 printf "Warning: No cpufreq directory present for $1\n" 24 if [ -d $CPUROOT/$1/cpufreq ]; then 25 printf "Warning: cpufreq directory present for $1\n" 173 # Basic cpufreq tests 181 printf "No cpu is managed by cpufreq core, exiting\n" 187 # Detect & print which CPUs are not managed by cpufreq 190 # read/update all cpufreq files 238 printf "Do basic tests after finishing $1 to verify cpufreq state\n\n"
|
/kernel/linux/linux-6.6/tools/testing/selftests/amd-pstate/ |
H A D | run.sh | 39 all_scaling_names=("acpi-cpufreq" "amd-pstate") 41 # Get current cpufreq scaling driver name 51 # Counts CPUs with cpufreq directories 57 if [ -d $CPUROOT/$cpu/cpufreq ]; then 105 # Exit if cpu isn't managed by cpufreq core 125 printf "No cpu is managed by cpufreq core, exiting\n" 154 [-m <comparative test: acpi-cpufreq>] 242 scaling_driver=$(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_driver) 247 echo "$0 # Current cpufreq scaling driver is $scaling_driver." 255 echo "$0 # Current cpufreq scalin [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
H A D | cpufreq-utils-s3c24xx.c | 11 #include <linux/cpufreq.h> 18 #include <linux/soc/samsung/s3c-cpufreq-core.h>
|
/kernel/linux/linux-5.10/tools/power/cpupower/ |
H A D | cpupower-completion.sh | 24 if [ -d /sys/devices/system/cpu/cpufreq/ ] ; then 25 COMPREPLY=($(compgen -W '$(cat $(ls -d /sys/devices/system/cpu/cpufreq/policy* | head -1)/scaling_available_frequencies)' -- "$cur")) 28 if [ -d /sys/devices/system/cpu/cpufreq/ ] ; then 29 COMPREPLY=($(compgen -W '$(cat $(ls -d /sys/devices/system/cpu/cpufreq/policy* | head -1)/scaling_available_governors)' -- "$cur"))
|
/kernel/linux/linux-6.6/tools/power/cpupower/ |
H A D | cpupower-completion.sh | 24 if [ -d /sys/devices/system/cpu/cpufreq/ ] ; then 25 COMPREPLY=($(compgen -W '$(cat $(ls -d /sys/devices/system/cpu/cpufreq/policy* | head -1)/scaling_available_frequencies)' -- "$cur")) 28 if [ -d /sys/devices/system/cpu/cpufreq/ ] ; then 29 COMPREPLY=($(compgen -W '$(cat $(ls -d /sys/devices/system/cpu/cpufreq/policy* | head -1)/scaling_available_governors)' -- "$cur"))
|