Home
last modified time | relevance | path

Searched refs:cpufreq (Results 1 – 25 of 90) sorted by relevance

1234

/Linux-v4.19/drivers/cpufreq/
Dtegra20-cpufreq.c51 struct tegra20_cpufreq *cpufreq = cpufreq_get_driver_data(); in tegra_get_intermediate() local
52 unsigned int ifreq = clk_get_rate(cpufreq->pll_p_clk) / 1000; in tegra_get_intermediate()
68 struct tegra20_cpufreq *cpufreq = cpufreq_get_driver_data(); in tegra_target_intermediate() local
81 clk_prepare_enable(cpufreq->pll_x_clk); in tegra_target_intermediate()
83 ret = clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_p_clk); in tegra_target_intermediate()
85 clk_disable_unprepare(cpufreq->pll_x_clk); in tegra_target_intermediate()
87 cpufreq->pll_x_prepared = true; in tegra_target_intermediate()
94 struct tegra20_cpufreq *cpufreq = cpufreq_get_driver_data(); in tegra_target() local
96 unsigned int ifreq = clk_get_rate(cpufreq->pll_p_clk) / 1000; in tegra_target()
104 return clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_p_clk); in tegra_target()
[all …]
DMakefile3 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 obj-$(CONFIG_X86_ACPI_CPUFREQ) += acpi-cpufreq.o
29 obj-$(CONFIG_X86_PCC_CPUFREQ) += pcc-cpufreq.o
43 obj-$(CONFIG_X86_CPUFREQ_NFORCE2) += cpufreq-nforce2.o
46 obj-$(CONFIG_X86_SFI_CPUFREQ) += sfi-cpufreq.o
55 obj-$(CONFIG_ARM_ARMADA_37XX_CPUFREQ) += armada-37xx-cpufreq.o
56 obj-$(CONFIG_ARM_BRCMSTB_AVS_CPUFREQ) += brcmstb-avs-cpufreq.o
58 obj-$(CONFIG_ARCH_DAVINCI) += davinci-cpufreq.o
[all …]
Ddavinci-cpufreq.c39 static struct davinci_cpufreq cpufreq; variable
43 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_target()
44 struct clk *armclk = cpufreq.armclk; in davinci_target()
62 if (cpufreq.asyncclk) { in davinci_target()
63 ret = clk_set_rate(cpufreq.asyncclk, cpufreq.asyncrate); in davinci_target()
78 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_cpu_init()
91 policy->clk = cpufreq.armclk; in davinci_cpu_init()
122 cpufreq.dev = &pdev->dev; in davinci_cpufreq_probe()
124 cpufreq.armclk = clk_get(NULL, "arm"); in davinci_cpufreq_probe()
125 if (IS_ERR(cpufreq.armclk)) { in davinci_cpufreq_probe()
[all …]
Dloongson1-cpufreq.c33 static struct ls1x_cpufreq *cpufreq; variable
66 clk_set_parent(policy->clk, cpufreq->osc_clk); in ls1x_cpufreq_target()
71 clk_set_rate(cpufreq->mux_clk, new_freq * 1000); in ls1x_cpufreq_target()
72 clk_set_parent(policy->clk, cpufreq->mux_clk); in ls1x_cpufreq_target()
85 pll_freq = clk_get_rate(cpufreq->pll_clk) / 1000; in ls1x_cpufreq_init()
94 if ((freq < cpufreq->min_freq) || (freq > cpufreq->max_freq)) in ls1x_cpufreq_init()
104 policy->clk = cpufreq->clk; in ls1x_cpufreq_init()
149 cpufreq = in ls1x_cpufreq_probe()
151 if (!cpufreq) in ls1x_cpufreq_probe()
154 cpufreq->dev = &pdev->dev; in ls1x_cpufreq_probe()
[all …]
DKconfig12 clock speed, you need to either enable a dynamic cpufreq governor
80 loading your cpufreq low-level hardware driver.
81 Be aware that not all cpufreq drivers support the ondemand
92 loading your cpufreq low-level hardware driver.
93 Be aware that not all cpufreq drivers support the conservative
112 This cpufreq governor sets the frequency statically to the
123 This cpufreq governor sets the frequency statically to the
134 Enable this cpufreq governor when you either want to set the
147 tristate "'ondemand' cpufreq policy governor"
150 'ondemand' - This driver adds a dynamic cpufreq policy governor.
[all …]
/Linux-v4.19/tools/power/cpupower/
D.gitignore5 cpufreq-info
6 cpufreq-set
7 cpufreq-aperf
9 lib/cpufreq.lo
10 lib/cpufreq.o
17 utils/cpufreq-info.o
18 utils/cpufreq-set.o
19 utils/cpufreq-aperf.o
21 bench/cpufreq-bench
DREADME16 tools and programs to the cpufreq core and drivers in the Linux kernel. This
18 the interaction to the cpufreq core, and support for both the sysfs and proc
30 /usr/lib; cpupower, cpufreq-bench_plot.sh to put in /usr/bin; and
31 cpufreq-bench to put in /usr/sbin. If you want to set up the paths
/Linux-v4.19/tools/power/cpupower/po/
Dpt.po225 #: utils/cpufreq-info.c:31
230 #: utils/cpufreq-info.c:63
238 #: utils/cpufreq-info.c:151
248 #: utils/cpufreq-info.c:161
253 #: utils/cpufreq-info.c:163
258 #: utils/cpufreq-info.c:163 utils/cpufreq-info.c:164
262 #: utils/cpufreq-info.c:163 utils/cpufreq-info.c:164
266 #: utils/cpufreq-info.c:164
271 #: utils/cpufreq-info.c:177
276 #: utils/cpufreq-info.c:178
[all …]
Dit.po227 #: utils/cpufreq-info.c:31
232 #: utils/cpufreq-info.c:63
239 #: utils/cpufreq-info.c:151
249 #: utils/cpufreq-info.c:161
254 #: utils/cpufreq-info.c:163
259 #: utils/cpufreq-info.c:163 utils/cpufreq-info.c:164
263 #: utils/cpufreq-info.c:163 utils/cpufreq-info.c:164
267 #: utils/cpufreq-info.c:164
272 #: utils/cpufreq-info.c:177
277 #: utils/cpufreq-info.c:178
[all …]
Dcs.po232 #: utils/cpufreq-info.c:31
237 #: utils/cpufreq-info.c:63
244 #: utils/cpufreq-info.c:151
254 #: utils/cpufreq-info.c:161
259 #: utils/cpufreq-info.c:163
264 #: utils/cpufreq-info.c:163 utils/cpufreq-info.c:164
268 #: utils/cpufreq-info.c:163 utils/cpufreq-info.c:164
272 #: utils/cpufreq-info.c:164
277 #: utils/cpufreq-info.c:177
282 #: utils/cpufreq-info.c:178
[all …]
Dde.po227 #: utils/cpufreq-info.c:31
233 #: utils/cpufreq-info.c:63
240 #: utils/cpufreq-info.c:151
250 #: utils/cpufreq-info.c:161
255 #: utils/cpufreq-info.c:163
260 #: utils/cpufreq-info.c:163 utils/cpufreq-info.c:164
264 #: utils/cpufreq-info.c:163 utils/cpufreq-info.c:164
268 #: utils/cpufreq-info.c:164
273 #: utils/cpufreq-info.c:177
278 #: utils/cpufreq-info.c:178
[all …]
Dfr.po227 #: utils/cpufreq-info.c:31
232 #: utils/cpufreq-info.c:63
239 #: utils/cpufreq-info.c:151
249 #: utils/cpufreq-info.c:161
254 #: utils/cpufreq-info.c:163
259 #: utils/cpufreq-info.c:163 utils/cpufreq-info.c:164
263 #: utils/cpufreq-info.c:163 utils/cpufreq-info.c:164
267 #: utils/cpufreq-info.c:164
272 #: utils/cpufreq-info.c:177
277 #: utils/cpufreq-info.c:178
[all …]
/Linux-v4.19/tools/power/cpupower/bench/
Dcpufreq-bench_script.sh43 echo $up_threshold >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
44 echo $sampling_rate >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
45 up_threshold_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold)
46 sampling_rate_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate)
61cpufreq-bench -o /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}
DREADME-BENCH1 This is cpufreq-bench, a microbenchmark for the cpufreq framework.
10 - (Stress) Testing whether a cpufreq low level driver or governor works
12 - Identify cpufreq related performance regressions between kernels
27 cpufreq-bench helps to test the condition of a given cpufreq governor.
80 trigger of the cpufreq-bench, you will see no performance loss (compare with
107 cpufreq-bench Command Usage
115 -g, --governor=<governor> cpufreq governor to test
/Linux-v4.19/Documentation/cpu-freq/
Dindex.txt27 cpu-drivers.txt - How to implement a new cpufreq processor driver.
29 cpufreq-nforce2.txt - nVidia nForce2 platform specific file.
31 cpufreq-stats.txt - General description of sysfs cpufreq stats.
35 pcc-cpufreq.txt - PCC cpufreq driver specific file.
47 * ftp://ftp.linux.org.uk/pub/linux/cpufreq/
Dcpufreq-stats.txt15 3. Configuring cpufreq-stats
20 cpufreq-stats is a driver that provides CPU frequency statistics for each CPU.
22 interface (when configured) will appear in a separate directory under cpufreq
23 in /sysfs (<sysfs root>/devices/system/cpu/cpuX/cpufreq/stats/) for each CPU.
32 cpufreq stats provides following statistics (explained in detail below).
43 <mysystem>:/sys/devices/system/cpu/cpu0/cpufreq/stats # ls -l
66 <mysystem>:/sys/devices/system/cpu/cpu0/cpufreq/stats # cat time_in_state
81 <mysystem>:/sys/devices/system/cpu/cpu0/cpufreq/stats # cat total_trans
97 <mysystem>:/sys/devices/system/cpu/cpu0/cpufreq/stats # cat trans_table
108 3. Configuring cpufreq-stats
[all …]
Dcore.txt30 The CPUFreq core code is located in drivers/cpufreq/cpufreq.c. This
31 cpufreq code offers a standardized interface for the CPUFreq
41 Reference counting of the cpufreq policies is done by cpufreq_cpu_get
42 and cpufreq_cpu_put, which make sure that the cpufreq driver is
44 cpufreq_put_cpu is called. That also ensures that the respective cpufreq
94 flags - flags of the cpufreq driver
103 into a format readily providable to cpufreq.
Dcpu-drivers.txt40 add cpufreq support for this CPU / chipset? Great. Here are some hints
65 .flags - Hints for the cpufreq core.
67 .driver_data - cpufreq driver specific data.
108 cpufreq driver registers itself, the per-policy initialization function
109 cpufreq_driver.init is called if no cpufreq policy existed for the CPU.
166 Most cpufreq drivers or even most cpu frequency scaling algorithms
171 Some cpufreq capable processors switch the frequency between certain
226 the reference implementation in drivers/cpufreq/longrun.c
250 As most cpufreq processors only allow for being set to a few specific
259 particular order, but if they are cpufreq core will do DVFS a bit
[all …]
/Linux-v4.19/tools/testing/selftests/cpufreq/
Dmain.sh5 source cpufreq.sh
64 if ! ls $CPUROOT/cpufreq > /dev/null 2>&1; then
65 echo $msg cpufreq directory not available in sysfs >&2
183 dmesg | grep cpufreq >> $1.dmesg_cpufreq.txt
Dcpu.sh13 source cpufreq.sh
79 if [ -d $CPUROOT/$cpu/cpufreq ]; then
Dgovernor.sh14 source cpufreq.sh
79 echo $2 > $CPUROOT/$1/cpufreq/scaling_governor
/Linux-v4.19/Documentation/thermal/
Dcpu-cooling-api.txt18 1.1 cpufreq registration/unregistration APIs
22 This interface function registers the cpufreq cooling device with the name
23 "thermal-cpufreq-%x". This api can support multiple instances of cpufreq
31 This interface function registers the cpufreq cooling device with
32 the name "thermal-cpufreq-%x" linking it with a device tree node, in
34 instances of cpufreq cooling devices.
40 This interface function unregisters the "thermal-cpufreq-%x" cooling device.
/Linux-v4.19/arch/arm/mach-w90x900/
Dcpu.c125 static int __init nuc900_set_clkval(unsigned int cpufreq) in nuc900_set_clkval() argument
133 switch (cpufreq) { in nuc900_set_clkval()
176 unsigned long cpufreq, val; in nuc900_set_cpufreq() local
181 if (kstrtoul(str, 0, &cpufreq)) in nuc900_set_cpufreq()
186 nuc900_set_clkval(cpufreq); in nuc900_set_cpufreq()
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-devices-system-cpu227 What: /sys/devices/system/cpu/cpu#/cpufreq/*
242 What: /sys/devices/system/cpu/cpu#/cpufreq/freqdomain_cpus
249 That information may be hidden from the cpufreq core and the
252 power/performance results for platforms using acpi-cpufreq.
254 This file is only present if the acpi-cpufreq driver is in use.
277 What: /sys/devices/system/cpu/cpufreq/boost
286 Documentation/admin-guide/pm/cpufreq.rst
388 What: /sys/devices/system/cpu/cpuX/cpufreq/throttle_stats
389 /sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/turbo_stat
390 /sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/sub_turbo_stat
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/cpufreq/
Dcpufreq-spear.txt1 SPEAr cpufreq driver
4 SPEAr SoC cpufreq driver for CPU frequency scaling.

1234