Searched refs:cpufreq (Results 1 - 200 of 231) sorted by relevance

12

/linux-4.1.27/drivers/cpufreq/
H A DMakefile2 obj-$(CONFIG_CPU_FREQ) += cpufreq.o freq_table.o
16 obj-$(CONFIG_CPUFREQ_DT) += cpufreq-dt.o
21 # K8 systems. This is still the case but acpi-cpufreq errors out so that
25 obj-$(CONFIG_X86_ACPI_CPUFREQ) += acpi-cpufreq.o
27 obj-$(CONFIG_X86_PCC_CPUFREQ) += pcc-cpufreq.o
41 obj-$(CONFIG_X86_CPUFREQ_NFORCE2) += cpufreq-nforce2.o
44 obj-$(CONFIG_X86_SFI_CPUFREQ) += sfi-cpufreq.o
53 obj-$(CONFIG_ARCH_DAVINCI) += davinci-cpufreq.o
54 obj-$(CONFIG_UX500_SOC_DB8500) += dbx500-cpufreq.o
55 obj-$(CONFIG_ARM_EXYNOS_CPUFREQ) += arm-exynos-cpufreq.o
56 arm-exynos-cpufreq-y := exynos-cpufreq.o
57 arm-exynos-cpufreq-$(CONFIG_ARM_EXYNOS4210_CPUFREQ) += exynos4210-cpufreq.o
58 arm-exynos-cpufreq-$(CONFIG_ARM_EXYNOS4X12_CPUFREQ) += exynos4x12-cpufreq.o
59 arm-exynos-cpufreq-$(CONFIG_ARM_EXYNOS5250_CPUFREQ) += exynos5250-cpufreq.o
60 obj-$(CONFIG_ARM_EXYNOS5440_CPUFREQ) += exynos5440-cpufreq.o
61 obj-$(CONFIG_ARM_HIGHBANK_CPUFREQ) += highbank-cpufreq.o
62 obj-$(CONFIG_ARM_HISI_ACPU_CPUFREQ) += hisi-acpu-cpufreq.o
63 obj-$(CONFIG_ARM_IMX6Q_CPUFREQ) += imx6q-cpufreq.o
64 obj-$(CONFIG_ARM_INTEGRATOR) += integrator-cpufreq.o
65 obj-$(CONFIG_ARM_KIRKWOOD_CPUFREQ) += kirkwood-cpufreq.o
66 obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ) += omap-cpufreq.o
67 obj-$(CONFIG_ARM_PXA2xx_CPUFREQ) += pxa2xx-cpufreq.o
68 obj-$(CONFIG_PXA3xx) += pxa3xx-cpufreq.o
69 obj-$(CONFIG_ARM_S3C24XX_CPUFREQ) += s3c24xx-cpufreq.o
70 obj-$(CONFIG_ARM_S3C24XX_CPUFREQ_DEBUGFS) += s3c24xx-cpufreq-debugfs.o
71 obj-$(CONFIG_ARM_S3C2410_CPUFREQ) += s3c2410-cpufreq.o
72 obj-$(CONFIG_ARM_S3C2412_CPUFREQ) += s3c2412-cpufreq.o
73 obj-$(CONFIG_ARM_S3C2416_CPUFREQ) += s3c2416-cpufreq.o
74 obj-$(CONFIG_ARM_S3C2440_CPUFREQ) += s3c2440-cpufreq.o
75 obj-$(CONFIG_ARM_S3C64XX_CPUFREQ) += s3c64xx-cpufreq.o
76 obj-$(CONFIG_ARM_S5PV210_CPUFREQ) += s5pv210-cpufreq.o
77 obj-$(CONFIG_ARM_SA1100_CPUFREQ) += sa1100-cpufreq.o
78 obj-$(CONFIG_ARM_SA1110_CPUFREQ) += sa1110-cpufreq.o
79 obj-$(CONFIG_ARM_SPEAR_CPUFREQ) += spear-cpufreq.o
80 obj-$(CONFIG_ARM_TEGRA_CPUFREQ) += tegra-cpufreq.o
81 obj-$(CONFIG_ARM_VEXPRESS_SPC_CPUFREQ) += vexpress-spc-cpufreq.o
85 obj-$(CONFIG_CPU_FREQ_CBE) += ppc-cbe-cpufreq.o
86 ppc-cbe-cpufreq-y += ppc_cbe_cpufreq_pervasive.o ppc_cbe_cpufreq.o
88 obj-$(CONFIG_CPU_FREQ_MAPLE) += maple-cpufreq.o
89 obj-$(CONFIG_QORIQ_CPUFREQ) += qoriq-cpufreq.o
90 obj-$(CONFIG_CPU_FREQ_PMAC) += pmac32-cpufreq.o
91 obj-$(CONFIG_CPU_FREQ_PMAC64) += pmac64-cpufreq.o
92 obj-$(CONFIG_PPC_PASEMI_CPUFREQ) += pasemi-cpufreq.o
93 obj-$(CONFIG_POWERNV_CPUFREQ) += powernv-cpufreq.o
97 obj-$(CONFIG_AVR32_AT32AP_CPUFREQ) += at32ap-cpufreq.o
98 obj-$(CONFIG_BFIN_CPU_FREQ) += blackfin-cpufreq.o
99 obj-$(CONFIG_CRIS_MACH_ARTPEC3) += cris-artpec3-cpufreq.o
100 obj-$(CONFIG_ETRAXFS) += cris-etraxfs-cpufreq.o
101 obj-$(CONFIG_IA64_ACPI_CPUFREQ) += ia64-acpi-cpufreq.o
103 obj-$(CONFIG_LOONGSON1_CPUFREQ) += ls1x-cpufreq.o
104 obj-$(CONFIG_SH_CPU_FREQ) += sh-cpufreq.o
105 obj-$(CONFIG_SPARC_US2E_CPUFREQ) += sparc-us2e-cpufreq.o
106 obj-$(CONFIG_SPARC_US3_CPUFREQ) += sparc-us3-cpufreq.o
107 obj-$(CONFIG_UNICORE32) += unicore2-cpufreq.o
H A Ddavinci-cpufreq.c22 #include <linux/cpufreq.h>
30 #include <mach/cpufreq.h>
39 static struct davinci_cpufreq cpufreq; variable in typeref:struct:davinci_cpufreq
43 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; davinci_verify_speed()
45 struct clk *armclk = cpufreq.armclk; davinci_verify_speed()
63 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; davinci_target()
64 struct clk *armclk = cpufreq.armclk; davinci_target()
82 if (cpufreq.asyncclk) { davinci_target()
83 ret = clk_set_rate(cpufreq.asyncclk, cpufreq.asyncrate); davinci_target()
98 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; davinci_cpu_init()
111 policy->clk = cpufreq.armclk; davinci_cpu_init()
142 cpufreq.dev = &pdev->dev; davinci_cpufreq_probe()
144 cpufreq.armclk = clk_get(NULL, "arm"); davinci_cpufreq_probe()
145 if (IS_ERR(cpufreq.armclk)) { davinci_cpufreq_probe()
146 dev_err(cpufreq.dev, "Unable to get ARM clock\n"); davinci_cpufreq_probe()
147 return PTR_ERR(cpufreq.armclk); davinci_cpufreq_probe()
150 asyncclk = clk_get(cpufreq.dev, "async"); davinci_cpufreq_probe()
152 cpufreq.asyncclk = asyncclk; davinci_cpufreq_probe()
153 cpufreq.asyncrate = clk_get_rate(asyncclk); davinci_cpufreq_probe()
161 clk_put(cpufreq.armclk); davinci_cpufreq_remove()
163 if (cpufreq.asyncclk) davinci_cpufreq_remove()
164 clk_put(cpufreq.asyncclk); davinci_cpufreq_remove()
171 .name = "cpufreq-davinci",
H A Ddbx500-cpufreq.c13 #include <linux/cpufreq.h>
52 pr_err("dbx500-cpufreq: Failed to fetch cpufreq table\n"); dbx500_cpufreq_probe()
58 pr_err("dbx500-cpufreq: Failed to get armss clk\n"); dbx500_cpufreq_probe()
62 pr_info("dbx500-cpufreq: Available frequencies:\n"); dbx500_cpufreq_probe()
71 .name = "cpufreq-ux500",
83 MODULE_DESCRIPTION("cpufreq driver for DBX500");
H A Dexynos4210-cpufreq.c18 #include <linux/cpufreq.h>
22 #include "exynos-cpufreq.h"
28 static struct exynos_dvfs_info *cpufreq; variable in typeref:struct:exynos_dvfs_info
66 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS4_CLKDIV_CPU); exynos4210_set_clkdiv()
69 tmp = __raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKDIV_STATCPU); exynos4210_set_clkdiv()
76 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS4_CLKDIV_CPU1); exynos4210_set_clkdiv()
79 tmp = __raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKDIV_STATCPU1); exynos4210_set_clkdiv()
91 tmp = (__raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKMUX_STATCPU) exynos4210_set_apll()
102 tmp = __raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKMUX_STATCPU); exynos4210_set_apll()
130 * cpufreq-dt driver. exynos4210_cpufreq_init()
171 cpufreq = info; exynos4210_cpufreq_init()
H A Ds3c2416-cpufreq.c18 #include <linux/cpufreq.h>
112 pr_err("cpufreq: Failed to set armdiv rate %dkHz: %d\n", s3c2416_cpufreq_set_armdiv()
129 pr_debug("cpufreq: already in dvs mode, nothing to do\n"); s3c2416_cpufreq_enter_dvs()
133 pr_debug("cpufreq: switching armclk to hclk (%lukHz)\n", s3c2416_cpufreq_enter_dvs()
137 pr_err("cpufreq: Failed to switch armclk to hclk: %d\n", ret); s3c2416_cpufreq_enter_dvs()
146 pr_debug("cpufreq: setting regulator to %d-%d\n", s3c2416_cpufreq_enter_dvs()
154 pr_err("cpufreq: Failed to set VDDARM: %d\n", ret); s3c2416_cpufreq_enter_dvs()
171 pr_debug("cpufreq: not in dvs mode, so can't leave\n"); s3c2416_cpufreq_leave_dvs()
179 pr_debug("cpufreq: setting regulator to %d-%d\n", s3c2416_cpufreq_leave_dvs()
185 pr_err("cpufreq: Failed to set VDDARM: %d\n", ret); s3c2416_cpufreq_leave_dvs()
193 pr_debug("cpufreq: force armdiv to hclk frequency (%lukHz)\n", s3c2416_cpufreq_leave_dvs()
198 pr_err("cpufreq: Failed to set the armdiv to %lukHz: %d\n", s3c2416_cpufreq_leave_dvs()
204 pr_debug("cpufreq: switching armclk parent to armdiv (%lukHz)\n", s3c2416_cpufreq_leave_dvs()
209 pr_err("cpufreq: Failed to switch armclk clock parent to armdiv: %d\n", s3c2416_cpufreq_leave_dvs()
235 pr_debug("cpufreq: entering dvs mode not allowed\n"); s3c2416_cpufreq_set_target()
249 pr_debug("cpufreq: enter dvs\n"); s3c2416_cpufreq_set_target()
252 pr_debug("cpufreq: leave dvs\n"); s3c2416_cpufreq_set_target()
255 pr_debug("cpufreq: change armdiv to %dkHz\n", new_freq); s3c2416_cpufreq_set_target()
274 pr_err("cpufreq: Unable to check supported voltages\n"); s3c2416_cpufreq_cfg_regulator()
293 pr_debug("cpufreq: %dkHz unsupported by regulator\n", s3c2416_cpufreq_cfg_regulator()
323 pr_debug("cpufreq: leave dvs on reboot\n"); s3c2416_cpufreq_reboot_notifier_evt()
350 pr_err("cpufreq: Unable to obtain msysclk: %d\n", ret); s3c2416_cpufreq_driver_init()
361 pr_info("cpufreq: msysclk running at %lukHz, using S3C2416 frequency table\n", s3c2416_cpufreq_driver_init()
366 pr_info("cpufreq: msysclk running at %lukHz, using S3C2450 frequency table\n", s3c2416_cpufreq_driver_init()
376 pr_err("cpufreq: No frequency information for this CPU, msysclk at %lukHz\n", s3c2416_cpufreq_driver_init()
386 pr_err("cpufreq: Unable to obtain ARMDIV: %d\n", ret); s3c2416_cpufreq_driver_init()
393 pr_err("cpufreq: Unable to obtain HCLK: %d\n", ret); s3c2416_cpufreq_driver_init()
402 pr_err("cpufreq: HCLK not at 133MHz\n"); s3c2416_cpufreq_driver_init()
411 pr_err("cpufreq: Unable to obtain ARMCLK: %d\n", ret); s3c2416_cpufreq_driver_init()
419 pr_err("cpufreq: Failed to obtain VDDARM: %d\n", ret); s3c2416_cpufreq_driver_init()
432 pr_debug("cpufreq: %dkHz unsupported as it would need unavailable dvs mode\n", s3c2416_cpufreq_driver_init()
445 pr_debug("cpufreq: %dkHz unsupported by clock (clk_round_rate return %lu)\n", s3c2416_cpufreq_driver_init()
H A Dhighbank-cpufreq.c9 * the cpufreq-dt driver changes to frequency to alert the highbank
63 struct platform_device_info devinfo = { .name = "cpufreq-dt", }; hb_cpufreq_driver_init()
75 pr_err("failed to get highbank cpufreq device\n"); hb_cpufreq_driver_init()
81 pr_err("failed to find highbank cpufreq node\n"); hb_cpufreq_driver_init()
98 /* Instantiate cpufreq-dt */ hb_cpufreq_driver_init()
108 MODULE_DESCRIPTION("Calxeda Highbank cpufreq driver");
H A Dexynos4x12-cpufreq.c18 #include <linux/cpufreq.h>
22 #include "exynos-cpufreq.h"
28 static struct exynos_dvfs_info *cpufreq; variable in typeref:struct:exynos_dvfs_info
111 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS4_CLKDIV_CPU); exynos4x12_set_clkdiv()
113 while (__raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKDIV_STATCPU) exynos4x12_set_clkdiv()
120 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS4_CLKDIV_CPU1); exynos4x12_set_clkdiv()
124 tmp = __raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKDIV_STATCPU1); exynos4x12_set_clkdiv()
137 tmp = (__raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKMUX_STATCPU) exynos4x12_set_apll()
149 tmp = __raw_readl(cpufreq->cmu_regs + EXYNOS4_CLKMUX_STATCPU); exynos4x12_set_apll()
177 * cpufreq-dt driver. exynos4x12_cpufreq_init()
223 cpufreq = info; exynos4x12_cpufreq_init()
H A Dexynos5250-cpufreq.c18 #include <linux/cpufreq.h>
22 #include "exynos-cpufreq.h"
28 static struct exynos_dvfs_info *cpufreq; variable in typeref:struct:exynos_dvfs_info
91 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS5_CLKDIV_CPU0); set_clkdiv()
93 while (__raw_readl(cpufreq->cmu_regs + EXYNOS5_CLKDIV_STATCPU0) set_clkdiv()
100 __raw_writel(tmp, cpufreq->cmu_regs + EXYNOS5_CLKDIV_CPU1); set_clkdiv()
102 while (__raw_readl(cpufreq->cmu_regs + EXYNOS5_CLKDIV_STATCPU1) & 0x11) set_clkdiv()
116 tmp = (__raw_readl(cpufreq->cmu_regs + EXYNOS5_CLKMUX_STATCPU) set_apll()
128 tmp = __raw_readl(cpufreq->cmu_regs + EXYNOS5_CLKMUX_STATCPU); set_apll()
156 * cpufreq-dt driver. exynos5250_cpufreq_init()
197 cpufreq = info; exynos5250_cpufreq_init()
H A Dppc_cbe_cpufreq.h12 #include <linux/cpufreq.h>
H A Dppc_cbe_cpufreq.c2 * cpufreq driver for the cell processor
23 #include <linux/cpufreq.h>
65 * cpufreq functions
81 pr_debug("init cpufreq on CPU %d\n", policy->cpu); cbe_cpufreq_cpu_init()
88 pr_info("invalid CBE regs pointers for cpufreq\n"); cbe_cpufreq_cpu_init()
145 .name = "cbe-cpufreq",
H A Dcpufreq_performance.c2 * linux/drivers/cpufreq/cpufreq_performance.c
15 #include <linux/cpufreq.h>
H A Dcpufreq_powersave.c2 * linux/drivers/cpufreq/cpufreq_powersave.c
15 #include <linux/cpufreq.h>
H A Dhisi-acpu-cpufreq.c35 pdev = platform_device_register_simple("cpufreq-dt", -1, NULL, 0); hisi_acpu_cpufreq_driver_init()
41 MODULE_DESCRIPTION("Hisilicon acpu cpufreq driver");
H A Darm_big_little_dt.c4 * It provides necessary ops to arm_big_little cpufreq driver and gets
22 #include <linux/cpufreq.h>
108 .name = "arm-bL-cpufreq-dt",
116 MODULE_DESCRIPTION("Generic ARM big LITTLE cpufreq driver via DT");
H A Dvexpress-spc-cpufreq.c4 * It provides necessary ops to arm_big_little cpufreq driver.
21 #include <linux/cpufreq.h>
62 .name = "vexpress-spc-cpufreq",
H A Dcpufreq_opp.c13 #include <linux/cpufreq.h>
24 * dev_pm_opp_init_cpufreq_table() - create a cpufreq table for a device
28 * Generate a cpufreq table for a provided device- this assumes that the
31 * This function allocates required memory for the cpufreq table. It is
95 * dev_pm_opp_free_cpufreq_table() - free the cpufreq table
H A Dsh-cpufreq.c2 * cpufreq driver for the SuperH processors.
7 * Clock framework bits from arch/avr32/mach-at32ap/cpufreq.c
15 #define pr_fmt(fmt) "cpufreq: " fmt
18 #include <linux/cpufreq.h>
176 MODULE_DESCRIPTION("cpufreq driver for SuperH");
H A Dkirkwood-cpufreq.c2 * kirkwood_freq.c: cpufreq driver for the Marvell kirkwood
15 #include <linux/cpufreq.h>
101 .name = "kirkwood-cpufreq",
158 dev_err(priv.dev, "Failed to register cpufreq driver"); kirkwood_cpufreq_probe()
185 .name = "kirkwood-cpufreq",
193 MODULE_DESCRIPTION("cpufreq driver for Marvell's kirkwood CPU");
194 MODULE_ALIAS("platform:kirkwood-cpufreq");
H A Dls1x-cpufreq.c14 #include <linux/cpufreq.h>
20 #include <asm/mach-loongson1/cpufreq.h>
100 "cpufreq table: index %d: frequency %d\n", i, ls1x_cpufreq_init()
120 .name = "cpufreq-ls1x",
192 "failed to register cpufreq driver: %d\n", ret); ls1x_cpufreq_probe()
202 dev_err(ls1x_cpufreq.dev, "failed to register cpufreq notifier: %d\n", ls1x_cpufreq_probe()
212 .name = "ls1x-cpufreq",
H A Dpmac64-cpufreq.c9 * This driver adds basic cpufreq support for SMU & 970FX based G5 Macs,
21 #include <linux/cpufreq.h>
141 printk(KERN_WARNING "cpufreq: Timeout in clock slewing !\n"); g5_vdnap_switch_volt()
269 printk(KERN_WARNING "cpufreq: pfunc switch error %d\n", rc); g5_pfunc_switch_freq()
285 printk(KERN_WARNING "cpufreq: Timeout in clock slewing !\n"); g5_pfunc_switch_freq()
310 * Common interface to the cpufreq core
371 printk(KERN_ERR "cpufreq: Unsupported CPU version\n"); g5_neo2_cpufreq_init()
406 printk(KERN_ERR "cpufreq: Can't find root of " g5_neo2_cpufreq_init()
415 printk(KERN_ERR "cpufreq: Can't find required " g5_neo2_cpufreq_init()
488 DBG("cpufreq: Initializing for PowerMac7,2, PowerMac7,3 and" g5_pm72_cpufreq_init()
496 printk(KERN_ERR "cpufreq: Can't find cpuid EEPROM !\n"); g5_pm72_cpufreq_init()
514 printk(KERN_ERR "cpufreq: Can't find i2c clock chip !\n"); g5_pm72_cpufreq_init()
519 DBG("cpufreq: i2c clock chip found: %s\n", hwclock->full_name); g5_pm72_cpufreq_init()
542 printk(KERN_ERR "cpufreq: Can't find platform functions !\n"); g5_pm72_cpufreq_init()
570 printk(KERN_ERR "cpufreq: Can't find CPU frequency !\n"); g5_pm72_cpufreq_init()
586 printk(KERN_WARNING "cpufreq: No low frequency mode available" g5_pm72_cpufreq_init()
598 printk(KERN_ERR "cpufreq: Can't calculate low frequency !\n"); g5_pm72_cpufreq_init()
657 pr_err("cpufreq: Can't find any CPU node\n"); g5_cpufreq_init()
H A Dat32ap-cpufreq.c17 #include <linux/cpufreq.h>
63 pr_debug("cpufreq: could not get CPU clk\n"); at32_cpufreq_driver_init()
103 printk("cpufreq: AT32AP CPU frequency driver\n"); at32_cpufreq_driver_init()
H A Dsc520_freq.c2 * sc520_freq.c: cpufreq driver for the AMD Elan sc520
21 #include <linux/cpufreq.h>
136 MODULE_DESCRIPTION("cpufreq driver for AMD's Elan sc520 CPU");
H A Dloongson2_cpufreq.c13 #include <linux/cpufreq.h>
79 printk(KERN_ERR "cpufreq: couldn't get CPU clk\n"); loongson2_cpufreq_cpu_init()
166 pr_info("cpufreq: Loongson-2F CPU frequency driver.\n"); cpufreq_init()
199 MODULE_DESCRIPTION("cpufreq driver for Loongson2F");
H A Dblackfin-cpufreq.c14 #include <linux/cpufreq.h>
89 pr_debug("cpufreq: freq:%d csel:0x%x tscale:%d\n", bfin_init_tables()
153 WARN_ONCE(ret, "cpufreq set freq failed %d\n", ret); bfin_target()
198 .name = "bfin cpufreq",
213 MODULE_DESCRIPTION("cpufreq driver for Blackfin");
H A Dexynos-cpufreq.c18 #include <linux/cpufreq.h>
24 #include "exynos-cpufreq.h"
219 pr_err("running cpufreq without cooling device: %ld\n", exynos_cpufreq_probe()
226 dev_err(&pdev->dev, "failed to register cpufreq driver\n"); exynos_cpufreq_probe()
235 .name = "exynos-cpufreq",
H A Dcpufreq-dt.c8 * drivers/cpufreq/omap-cpufreq.c
20 #include <linux/cpufreq.h>
21 #include <linux/cpufreq-dt.h>
279 pr_err("failed to init cpufreq table: %d\n", ret); cpufreq_init()
352 "running cpufreq without cooling device: %ld\n", cpufreq_ready()
370 .name = "cpufreq-dt",
413 .name = "cpufreq-dt",
422 MODULE_DESCRIPTION("Generic cpufreq driver");
H A Dexynos5440-cpufreq.c16 #include <linux/cpufreq.h>
242 /* Ensure we can access cpufreq structures */ exynos_cpufreq_work()
288 * Exynos5440 clock controller state logic expects the cpufreq table to exynos_sort_descend_freq_table()
321 .compatible = "samsung,exynos5440-cpufreq",
358 dev_err(dvfs_info->dev, "No cpufreq irq found\n"); exynos_cpufreq_probe()
373 "failed to init cpufreq table: %d\n", ret); exynos_cpufreq_probe()
416 "%s: failed to register cpufreq driver\n", __func__); exynos_cpufreq_probe()
444 .name = "exynos5440-cpufreq",
453 MODULE_DESCRIPTION("Exynos5440 cpufreq driver");
H A Darm_big_little.h22 #include <linux/cpufreq.h>
H A Dintegrator-cpufreq.c13 #include <linux/cpufreq.h>
26 /* The cpufreq driver only use the OSC register */
228 .name = "integrator-cpufreq",
238 MODULE_DESCRIPTION ("cpufreq driver for ARM Integrator CPUs");
H A Domap-cpufreq.c19 #include <linux/cpufreq.h>
77 dev_dbg(mpu_dev, "cpufreq-omap: %u MHz, %ld mV --> %u MHz, %ld mV\n", omap_target()
197 .name = "omap-cpufreq",
204 MODULE_DESCRIPTION("cpufreq driver for OMAP SoCs");
H A Dpxa3xx-cpufreq.c14 #include <linux/cpufreq.h>
55 #define OP(cpufreq, _xl, _xn, _hss, _dmc, _smc, _sfl, _dfi, vcore, vsram) \
57 .cpufreq_mhz = cpufreq, \
209 .name = "pxa3xx-cpufreq",
H A Dcpufreq_userspace.c3 * linux/drivers/cpufreq/cpufreq_userspace.c
16 #include <linux/cpufreq.h>
H A Dpowernv-cpufreq.c2 * POWERNV cpufreq driver for the IBM POWER processors
20 #define pr_fmt(fmt) "powernv-cpufreq: " fmt
26 #include <linux/cpufreq.h>
92 pr_info("cpufreq pstate min %d nominal %d max %d\n", pstate_min, init_powernv_pstates()
294 * pstate in the cpufreq table
341 * the cpufreq table entry indexed by new_index on the cpus in the
407 .name = "powernv-cpufreq",
428 pr_info("powernv-cpufreq disabled. System does not support PState control\n"); powernv_cpufreq_init()
H A Dia64-acpi-cpufreq.c3 * module works with generic cpufreq infrastructure. Most of
5 * (arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c)
15 #include <linux/cpufreq.h>
294 printk(KERN_INFO "acpi-cpufreq: CPU%u - ACPI performance management " acpi_cpufreq_cpu_init()
350 .name = "acpi-cpufreq",
H A Dcpufreq.c2 * linux/drivers/cpufreq/cpufreq.c
21 #include <linux/cpufreq.h>
46 * The "cpufreq driver" - the arch- or hardware-dependent low
68 * rwsem to guarantee that cpufreq driver module doesn't unload during critical
160 * This is a generic cpufreq init() routine which can be used by cpufreq
204 /* Only for cpufreq core internal use */ cpufreq_cpu_get_raw()
221 /* get the cpufreq driver */ cpufreq_cpu_get()
299 * which is not equal to what the cpufreq core thinks is __cpufreq_notify_transition()
305 pr_debug("Warning: CPU frequency is %u, cpufreq assumed %u kHz\n", __cpufreq_notify_transition()
362 * ASYNC_NOTIFICATION drivers are left out because the cpufreq core cpufreq_freq_transition_begin()
430 pr_debug("%s: cpufreq BOOST %s\n", store_boost()
499 * print out cpufreq information
622 * show_scaling_driver - show the cpufreq driver currently loaded
715 * show_bios_limit - show the current cpufreq HW/BIOS limitation
842 &cpu_subsys.dev_root->kobj, "%s", "cpufreq"); cpufreq_get_global_kobject()
891 "cpufreq"); cpufreq_add_dev_symlink()
997 return sysfs_create_link(&dev->kobj, &policy->kobj, "cpufreq"); cpufreq_add_policy_cpu()
1160 /* call driver. From then on the cpufreq must be able
1186 &dev->kobj, "cpufreq");
1209 * frequency table present with cpufreq core. In such cases CPU might be
1212 * freq-table. This also makes cpufreq stats inconsistent as
1213 * cpufreq-stats would fail to register because current frequency of CPU
1315 * Adds the cpufreq interface for a CPU device.
1317 * The Oracle says: try running cpufreq registration/unregistration concurrently
1367 sysfs_remove_link(&dev->kobj, "cpufreq"); __cpufreq_remove_dev_prepare()
1373 sysfs_remove_link(&cpu_dev->kobj, "cpufreq"); __cpufreq_remove_dev_prepare()
1377 "cpufreq")) __cpufreq_remove_dev_prepare()
1465 * Removes the cpufreq interface for a CPU device.
1506 pr_debug("Warning: CPU frequency out of sync: cpufreq and timing core thinks of %u, is %u kHz\n", cpufreq_out_of_sync()
1607 .name = "cpufreq",
1718 * Return the name string of the currently loaded cpufreq driver
1733 * Return the private data of the currently loaded cpufreq
1734 * driver, or NULL if no cpufreq driver is loaded.
1750 * cpufreq_register_notifier - register a driver with cpufreq
1757 * changes in cpufreq policy.
1789 * cpufreq_unregister_notifier - unregister a driver with cpufreq
2127 * Reads the current cpufreq policy.
2243 * cpufreq_update_policy - re-evaluate an existing cpufreq policy
2521 * Stop cpufreq at shutdown to make sure it isn't holding any locks
H A Dcpufreq_stats.c2 * drivers/cpufreq/cpufreq_stats.c
13 #include <linux/cpufreq.h>
170 /* We need cpufreq table for creating stats table */ __cpufreq_stats_create_table()
235 * before cpufreq driver cpufreq_stats_create_table()
353 MODULE_DESCRIPTION("Export cpufreq stats via sysfs");
H A Dimx6q-cpufreq.c11 #include <linux/cpufreq.h>
151 .name = "imx6q-cpufreq",
224 dev_err(cpu_dev, "failed to init cpufreq table: %d\n", ret); imx6q_cpufreq_probe()
359 .name = "imx6q-cpufreq",
367 MODULE_DESCRIPTION("Freescale i.MX6Q cpufreq driver");
H A Dmaple-cpufreq.c10 * This driver adds basic cpufreq support for SMU & 970FX based G5 Macs,
22 #include <linux/cpufreq.h>
128 * Common interface to the cpufreq core
177 printk(KERN_ERR "cpufreq: Can't find any CPU 0 node\n"); maple_cpufreq_init()
185 printk(KERN_ERR "cpufreq: Unsupported CPU version (%x)\n", maple_cpufreq_init()
H A Dspear-cpufreq.c2 * drivers/cpufreq/spear-cpufreq.c
17 #include <linux/cpufreq.h>
161 .name = "cpufreq-spear",
238 .name = "spear-cpufreq",
H A Delanfreq.c2 * elanfreq: cpufreq driver for the AMD ELAN family
24 #include <linux/cpufreq.h>
229 MODULE_DESCRIPTION("cpufreq driver for AMD's Elan CPUs");
H A Dsparc-us3-cpufreq.c5 * Many thanks to Dominik Brodowski for fixing up the cpufreq
13 #include <linux/cpufreq.h>
233 MODULE_DESCRIPTION("cpufreq driver for UltraSPARC-III");
H A Dsfi-cpufreq.c17 #include <linux/cpufreq.h>
86 .name = "sfi-cpufreq",
H A Dcpufreq-nforce2.c14 #include <linux/cpufreq.h>
49 MODULE_DESCRIPTION("nForce2 FSB changing cpufreq driver");
59 #define PFX "cpufreq-nforce2: "
434 * nforce2_exit - unregisters cpufreq module
H A Dcris-artpec3-cpufreq.c3 #include <linux/cpufreq.h>
H A Dcris-etraxfs-cpufreq.c3 #include <linux/cpufreq.h>
H A Dp4-clockmod.c27 #include <linux/cpufreq.h>
128 "CPU detected. The acpi-cpufreq module offers " cpufreq_p4_get_frequency()
156 "The speedstep-ich or acpi cpufreq modules offer " cpufreq_p4_get_frequency()
282 MODULE_DESCRIPTION("cpufreq driver for Pentium(TM) 4/Xeon(TM)");
H A Dpasemi-cpufreq.c28 #include <linux/cpufreq.h>
134 * cpufreq functions
186 pr_debug("init cpufreq on CPU %d\n", policy->cpu); pas_cpufreq_cpu_init()
260 .name = "pas-cpufreq",
H A Dunicore2-cpufreq.c19 #include <linux/cpufreq.h>
H A DKconfig.x8625 <file:Documentation/cpu-freq/pcc-cpufreq.txt>.
28 module will be called pcc-cpufreq.
42 module will be called acpi-cpufreq.
129 Support for K10 and newer processors is now in acpi-cpufreq.
277 and is thus considered dangerous. Please use the regular ACPI cpufreq
H A Dpxa2xx-cpufreq.c36 #include <linux/cpufreq.h>
189 pr_err("cpufreq: Failed to set vcc_core in [%dmV..%dmV]\n", pxa_cpufreq_change_voltage()
198 pr_info("cpufreq: Didn't find vcc_core regulator\n"); pxa_cpufreq_init_voltages()
201 pr_info("cpufreq: Found vcc_core regulator\n"); pxa_cpufreq_init_voltages()
411 pr_info("PXA255 cpufreq using %s frequency table\n", pxa_cpufreq_init()
H A Ds3c24xx-cpufreq-debugfs.c17 #include <linux/cpufreq.h>
179 dbgfs_root = debugfs_create_dir("s3c-cpufreq", NULL); s3c_freq_debugfs_init()
H A Ds3c64xx-cpufreq.c11 #define pr_fmt(fmt) "cpufreq: " fmt
16 #include <linux/cpufreq.h>
H A Dtegra-cpufreq.c23 #include <linux/cpufreq.h>
215 MODULE_DESCRIPTION("cpufreq driver for Nvidia Tegra2");
H A Dsparc-us2e-cpufreq.c5 * Many thanks to Dominik Brodowski for fixing up the cpufreq
13 #include <linux/cpufreq.h>
374 MODULE_DESCRIPTION("cpufreq driver for UltraSPARC-IIe");
H A Dpcc-cpufreq.c2 * pcc-cpufreq.c - Processor Clocking Control firmware cpufreq interface
31 #include <linux/cpufreq.h>
524 printk(KERN_DEBUG "pcc-cpufreq: (v%s) driver loaded with frequency" pcc_cpufreq_probe()
576 .name = "pcc-cpufreq",
H A Dacpi-cpufreq.c2 * acpi-cpufreq.c - ACPI Processor P-States Driver
33 #include <linux/cpufreq.h>
53 #define PFX "acpi-cpufreq: "
458 /* cpufreq holds the hotplug lock, so we are safe from here on */ acpi_cpufreq_target()
632 printk(KERN_INFO "acpi-cpufreq: Intel(R) " acpi_cpufreq_blacklist()
635 "acpi-cpufreq.\n"); acpi_cpufreq_blacklist()
893 .name = "acpi-cpufreq",
H A Ds3c24xx-cpufreq.c17 #include <linux/cpufreq.h>
34 /* note, cpufreq support deals in kHz, no Hz */
197 /* setup our cpufreq parameters */ s3c_cpufreq_settarget()
271 * called by the cpufreq core to adjust the frequency that the CPU
359 printk(KERN_ERR "cpufreq: failed to get clock '%s'\n", name); s3c_cpufreq_clk_get()
669 printk(KERN_INFO "cpufreq: %d PLL entries\n", plls_no); s3c_plltab_register()
671 printk(KERN_ERR "cpufreq: no memory for PLL tables\n"); s3c_plltab_register()
H A Dpmac32-cpufreq.c24 #include <linux/cpufreq.h>
52 * Currently, PowerMac cpufreq supports only high & low frequencies
102 * core cpufreq framework's own calculation. debug_calc_bogomips()
484 printk(KERN_ERR "cpufreq: bus-frequencies incorrect or missing\n"); pmac_cpufreq_init_MacRISC3()
490 printk(KERN_ERR "cpufreq: processor-to-bus-ratio*2 missing\n"); pmac_cpufreq_init_MacRISC3()
553 printk(KERN_ERR "cpufreq: missing cpu-vcore-select gpio\n"); pmac_cpufreq_init_7447A()
H A Dpowernow-k7.c20 #include <linux/cpufreq.h>
258 * the cpufreq frequency table in powernow_decode_bios, powernow_target()
584 "cpufreq scaling has been disabled as a result of this.\n"); acer_cpufreq_pst()
591 * Mention this, and disable cpufreq.
H A Ds3c2410-cpufreq.c17 #include <linux/cpufreq.h>
H A Dcpufreq_governor.h2 * drivers/cpufreq/cpufreq_governor.h
20 #include <linux/cpufreq.h>
H A Dfreq_table.c2 * linux/drivers/cpufreq/freq_table.c
14 #include <linux/cpufreq.h>
H A Dlongrun.c12 #include <linux/cpufreq.h>
22 * longrun_{low,high}_freq is needed for the conversion of cpufreq kHz
H A Dpowernow-k8.h37 /* we need to keep track of associated cores, but let cpufreq
38 * handle hotplug events - so just point at cpufreq pol->cpus
H A Dqoriq-cpufreq.c14 #include <linux/cpufreq.h>
374 MODULE_DESCRIPTION("cpufreq driver for Freescale QorIQ series SoCs");
H A Dspeedstep-ich.c24 #include <linux/cpufreq.h>
139 printk(KERN_ERR "cpufreq: change failed - I/O error\n"); speedstep_set_state()
H A Dspeedstep-smi.c19 #include <linux/cpufreq.h>
207 printk(KERN_ERR "cpufreq: change to state %u " speedstep_set_state()
H A Darm_big_little.c24 #include <linux/cpufreq.h>
340 dev_err(cpu_dev, "%s: failed to init cpufreq table, cpu: %d, err: %d\n", _get_cluster_clk_and_freq_table()
604 MODULE_DESCRIPTION("Generic ARM big LITTLE cpufreq driver");
H A Dgx-suspmod.c80 #include <linux/cpufreq.h>
421 /* setup basic struct for cpufreq API */ cpufreq_gx_cpu_init()
438 * MediaGX/Geode GX initialize cpufreq driver
H A Ds5pv210-cpufreq.c18 #include <linux/cpufreq.h>
600 * cpufreq-dt driver. s5pv210_cpufreq_probe()
658 .name = "s5pv210-cpufreq",
H A Dspeedstep-centrino.c2 * cpufreq driver for Enhanced SpeedStep, as found in Intel's Pentium
19 #include <linux/cpufreq.h>
255 pr_debug("try using the acpi-cpufreq driver\n"); centrino_cpu_init_table()
H A Dcpufreq_conservative.c2 * drivers/cpufreq/cpufreq_conservative.c
398 MODULE_DESCRIPTION("'cpufreq_conservative' - A dynamic cpufreq governor for "
H A Dspeedstep-lib.c15 #include <linux/cpufreq.h>
481 MODULE_DESCRIPTION("Library for Intel SpeedStep 1 or 2 cpufreq drivers.");
H A Dcpufreq_ondemand.c2 * drivers/cpufreq/cpufreq_ondemand.c
622 MODULE_DESCRIPTION("'cpufreq_ondemand' - A dynamic cpufreq governor for "
H A Dpowernow-k6.c14 #include <linux/cpufreq.h>
H A Dpowernow-k8.c36 #include <linux/cpufreq.h>
910 * the cpufreq frequency table in find_psb_table, vid transition_frequency_fidvid()
1182 const char *cur_drv, *drv = "acpi-cpufreq"; __request_acpi_cpufreq()
1194 pr_warn("This CPU is not supported anymore, using acpi-cpufreq instead.\n"); __request_acpi_cpufreq()
H A Ds3c2412-cpufreq.c17 #include <linux/cpufreq.h>
H A Ds3c2440-cpufreq.c18 #include <linux/cpufreq.h>
H A Dsa1100-cpufreq.c89 #include <linux/cpufreq.h>
H A Dsa1110-cpufreq.c19 #include <linux/cpufreq.h>
H A Dcpufreq_governor.c2 * drivers/cpufreq/cpufreq_governor.c
H A De_powersaver.c12 #include <linux/cpufreq.h>
/linux-4.1.27/tools/power/cpupower/bench/
H A DMakefile11 CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
17 $(OUTPUT)cpufreq-bench: $(OBJS)
21 all: $(OUTPUT)cpufreq-bench
28 install -m 755 $(OUTPUT)cpufreq-bench $(DESTDIR)/$(sbindir)/cpufreq-bench
29 install -m 755 cpufreq-bench_plot.sh $(DESTDIR)/$(bindir)/cpufreq-bench_plot.sh
31 install -m 755 cpufreq-bench_script.sh $(DESTDIR)/$(docdir)/cpufreq-bench_script.sh
32 install -m 644 example.cfg $(DESTDIR)/$(confdir)/cpufreq-bench.conf
36 rm -f $(OUTPUT)cpufreq-bench
H A Dcpufreq-bench_script.sh20 # Ondemand up_threshold and sampling rate test script for cpufreq-bench
43 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)
61 cpufreq-bench -o /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}
71 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 %\""
73 command="${command} /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}/* \"sampling_rate = $sampling_rate\""
81 command="cpufreq-bench_plot.sh -o \"up_threshold_${UP_THRESHOLD}_sampling_rate_${sampling_rate}\" -t \"Ondemand up_threshold: ${UP_THRESHOLD} % comparison - sampling_rate: $sampling_rate\""
83 command="${command} /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}/* \"up_threshold = $up_threshold\""
90 command="cpufreq-bench_plot.sh -o \"up_threshold_${UP_THRESHOLD}_sampling_rate_${SAMPLING_RATE}\" -t \"Ondemand up_threshold: ${UP_THRESHOLD} and sampling_rate ${SAMPLING_RATE} comparison\""
93 command="${command} /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}/* \"up_threshold = $up_threshold - sampling_rate = $sampling_rate\""
H A Dcpufreq-bench_plot.sh20 # Helper script to easily create nice plots of your cpufreq-bench results
23 output_file="cpufreq-bench.png"
24 global_title="cpufreq-bench plot"
30 echo "cpufreq-bench_plot.sh [OPTIONS] logfile [measure_title] [logfile [measure_title]] ...]"
H A Dparse.h0 /* cpufreq-bench CPUFreq microbenchmark
32 char governor[15]; /* cpufreq governor */
H A Dsystem.c0 /* cpufreq-bench CPUFreq microbenchmark
28 #include <cpufreq.h>
49 * sets the cpufreq governor
51 * @param governor cpufreq governor name
61 dprintf("set %s as cpufreq governor\n", governor); set_cpufreq_governor()
H A Dbenchmark.h0 /* cpufreq-bench CPUFreq microbenchmark
H A Dconfig.h0 /* cpufreq-bench CPUFreq microbenchmark
H A Dbenchmark.c0 /* cpufreq-bench CPUFreq microbenchmark
114 /* set the cpufreq governor to "performance" which disables start_benchmark()
H A Dmain.c0 /* cpufreq-bench CPUFreq microbenchmark
H A Dparse.c0 /* cpufreq-bench CPUFreq microbenchmark
/linux-4.1.27/drivers/thermal/
H A Dcpu_cooling.c27 #include <linux/cpufreq.h>
48 * struct cpufreq_cooling_device - data for cooling device with cpufreq
53 * @cpufreq_state: integer value representing the current state of cpufreq
58 * cpufreq frequencies.
116 /* Below code defines functions to be used for cpufreq as cooling device */
171 * cpufreq_thermal_notifier - notifier callback for cpufreq policy change.
173 * @event: value showing cpufreq event for which this function invoked.
176 * Callback to hijack the notification on cpufreq policy transition.
178 * update the cpufreq policy with thermal constraints.
208 /* cpufreq cooling device callback functions are defined below */
215 * Callback for the thermal cooling device to return the cpufreq
234 * Callback for the thermal cooling device to return the cpufreq
254 * Callback for the thermal cooling device to change the cpufreq
283 /* Bind cpufreq callbacks to thermal cooling device ops */
290 /* Notifier for cpufreq policy change */
310 * __cpufreq_cooling_register - helper function to create cpufreq cooling device
313 * Normally this should be same as cpufreq policy->related_cpus.
315 * This interface function registers the cpufreq cooling device with the name
316 * "thermal-cpufreq-%x". This api can support multiple instances of cpufreq
378 snprintf(dev_name, sizeof(dev_name), "thermal-cpufreq-%d", __cpufreq_cooling_register()
391 /* Register the notifier for first cpufreq cooling device */ __cpufreq_cooling_register()
412 * cpufreq_cooling_register - function to create cpufreq cooling device.
415 * This interface function registers the cpufreq cooling device with the name
416 * "thermal-cpufreq-%x". This api can support multiple instances of cpufreq
430 * of_cpufreq_cooling_register - function to create cpufreq cooling device.
434 * This interface function registers the cpufreq cooling device with the name
435 * "thermal-cpufreq-%x". This api can support multiple instances of cpufreq
436 * cooling devices. Using this API, the cpufreq cooling device will be
454 * cpufreq_cooling_unregister - function to remove cpufreq cooling device.
457 * This interface function unregisters the "thermal-cpufreq-%x" cooling device.
470 /* Unregister the notifier for the last cpufreq cooling device */ cpufreq_cooling_unregister()
H A Ddb8500_cpufreq_cooling.c2 * db8500_cpufreq_cooling.c - DB8500 cpufreq works as cooling device.
72 { .compatible = "stericsson,db8500-cpufreq-cooling" },
79 .name = "db8500-cpufreq-cooling",
103 MODULE_DESCRIPTION("DB8500 cpufreq cooling driver");
H A Dclock_cooling.c23 #include <linux/cpufreq.h>
H A Dimx_thermal.c518 "failed to register cpufreq cooling device: %d\n", imx_thermal_probe()
/linux-4.1.27/arch/arm/mach-shmobile/
H A Dcpufreq.c15 platform_device_register_simple("cpufreq-dt", -1, NULL, 0); shmobile_cpufreq_init()
H A DMakefile48 obj-$(CONFIG_CPU_FREQ) += cpufreq.o
/linux-4.1.27/tools/power/cpupower/debug/kernel/
H A DMakefile8 obj-m += cpufreq-test_tsc.o
H A Dcpufreq-test_tsc.c3 * to work properly after cpufreq transitions. Needs ACPI to work
20 * handle the cpufreq transition. Please report this to
109 MODULE_DESCRIPTION("Verify the TSC cpufreq notifier working correctly -- needs ACPI-enabled system");
/linux-4.1.27/arch/arm/mach-w90x900/
H A Dcpu.c125 static int __init nuc900_set_clkval(unsigned int cpufreq) nuc900_set_clkval() argument
133 switch (cpufreq) { nuc900_set_clkval()
176 unsigned long cpufreq, val; nuc900_set_cpufreq() local
181 if (kstrtoul(str, 0, &cpufreq)) nuc900_set_cpufreq()
186 nuc900_set_clkval(cpufreq); nuc900_set_cpufreq()
200 __setup("cpufreq=", nuc900_set_cpufreq);
H A Dclksel.c75 dev_id = "cpufreq"; nuc900_clock_source()
/linux-4.1.27/include/linux/
H A Dcpu_cooling.h33 * cpufreq_cooling_register - function to create cpufreq cooling device.
40 * of_cpufreq_cooling_register - create cpufreq cooling device based on DT.
58 * cpufreq_cooling_unregister - function to remove cpufreq cooling device.
H A Dcpufreq.h2 * linux/include/linux/cpufreq.h
67 should set cpufreq */
74 unsigned int cur; /* in kHz, only needed if cpufreq
114 /* cpufreq-stats */
117 /* For cpufreq driver's internal use */
143 /* /sys/devices/system/cpu/cpufreq: entry point for global variables */
296 * be created in cpu/cpu<num>/cpufreq/ directory and so they can use the same
309 * Set by drivers which want cpufreq core to check if CPU is running at a
456 /* Pass a target to the cpufreq driver */
591 /* the following funtion is for cpufreq core use only */
H A Dsh_clk.h6 #include <linux/cpufreq.h>
/linux-4.1.27/arch/arm/mach-spear/
H A Dspear1340.c23 platform_device_register_simple("spear-cpufreq", -1, NULL, 0); spear1340_dt_init()
H A Dspear1310.c31 platform_device_register_simple("spear-cpufreq", -1, NULL, 0); spear1310_dt_init()
/linux-4.1.27/arch/arm/mach-davinci/include/mach/
H A Dcpufreq.h18 #include <linux/cpufreq.h>
/linux-4.1.27/drivers/macintosh/
H A Dwindfarm_cpufreq_clamp.c8 #include <linux/cpufreq.h>
83 clamp->name = "cpufreq-clamp"; wf_cpufreq_clamp_init()
H A Dwindfarm_pm81.c80 * CPU Slew control loop. Not implemented. The cpufreq driver in linux is
87 * the cpufreq driver and thus do not know what the current operating
568 /* If entering failure mode, clamp cpufreq and ramp all wf_smu_tick()
582 /* If leaving failure mode, unclamp cpufreq and readjust wf_smu_tick()
627 if (cpufreq_clamp == NULL && !strcmp(ct->name, "cpufreq-clamp")) { wf_smu_new_control()
H A Dwindfarm_pm112.c186 * cpufreq clamping now, even if it's supposedly done later by the cpu_max_all_fans()
541 /* Check for failures. Any failure causes cpufreq clamping */ pm112_tick()
556 if (cpufreq_clamp == NULL && !strcmp(ct->name, "cpufreq-clamp")) { pm112_new_control()
H A Dwindfarm_rm31.c105 * cpufreq clamping now, even if it's supposedly done later by the cpu_max_all_fans()
557 /* Check for failures. Any failure causes cpufreq clamping */ rm31_tick()
588 else if (!strcmp(ct->name, "cpufreq-clamp")) rm31_new_control()
H A Dwindfarm_pm121.c197 * control : cpufreq-clamp
836 /* If entering failure mode, clamp cpufreq and ramp all pm121_tick()
846 /* If leaving failure mode, unclamp cpufreq and readjust pm121_tick()
898 all = pm121_register_control(ct, "cpufreq-clamp", CPUFREQ) && all; pm121_new_control()
H A Dwindfarm_pm72.c111 * cpufreq clamping now, even if it's supposedly done later by the cpu_max_all_fans()
659 /* Check for failures. Any failure causes cpufreq clamping */ pm72_tick()
693 else if (!strcmp(ct->name, "cpufreq-clamp")) pm72_new_control()
H A Dwindfarm_pm91.c488 /* If entering failure mode, clamp cpufreq and ramp all wf_smu_tick()
506 /* If leaving failure mode, unclamp cpufreq and readjust wf_smu_tick()
557 if (cpufreq_clamp == NULL && !strcmp(ct->name, "cpufreq-clamp")) { wf_smu_new_control()
/linux-4.1.27/arch/arm/mach-imx/
H A Dmach-imx6sl.c40 /* imx6sl reuses imx6q cpufreq driver */ imx6sl_init_late()
42 platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0); imx6sl_init_late()
H A Dimx27-dt.c23 struct platform_device_info devinfo = { .name = "cpufreq-dt", }; imx27_dt_init()
H A Dmach-imx53.c44 platform_device_register_simple("cpufreq-dt", -1, NULL, 0); imx53_init_late()
H A Dmach-imx51.c54 struct platform_device_info devinfo = { .name = "cpufreq-dt", }; imx51_dt_init()
H A Dmach-imx6sx.c96 platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0); imx6sx_init_late()
H A Dmach-imx6q.c365 .name = "imx6q-cpufreq",
/linux-4.1.27/tools/power/cpupower/utils/idle_monitor/
H A Dmperf_monitor.c15 #include <cpufreq.h>
65 * 2) cpufreq /sys/devices/.../cpu0/cpufreq/cpuinfo_max_freq at init time
66 * 1. Is preferred as it also works without cpufreq subsystem (e.g. on Xen)
226 * /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
232 * stats when acpi-cpufreq driver is loaded.
277 dprint("Cannot retrieve max freq from cpufreq kernel " init_maxfreq_mode()
/linux-4.1.27/tools/power/cpupower/
H A DMakefile47 # cpufreq-bench benchmarking tool
134 utils/cpupower.o utils/cpufreq-info.o utils/cpufreq-set.o \
146 LIB_HEADERS = lib/cpufreq.h lib/sysfs.h
147 LIB_SRC = lib/cpufreq.c lib/sysfs.c
148 LIB_OBJS = lib/cpufreq.o lib/sysfs.o
267 $(INSTALL_DATA) lib/cpufreq.h $(DESTDIR)${includedir}/cpufreq.h
298 - rm -f $(DESTDIR)${includedir}/cpufreq.h
/linux-4.1.27/arch/arm/mach-sa1100/
H A Dgeneric.h6 #include <linux/cpufreq.h>
H A Dhackkit.c20 #include <linux/cpufreq.h>
H A Dgeneric.c19 #include <linux/cpufreq.h>
/linux-4.1.27/tools/power/cpupower/lib/
H A Dcpufreq.h2 * cpufreq.h - definitions for libcpufreq
93 * considerations by cpufreq policy notifiers in the kernel.
141 * Only present on _some_ ->target() cpufreq drivers. For information purposes
177 /* determine stats for cpufreq subsystem
190 /* set new cpufreq policy
213 * occurs. Also does not work on ->range() cpufreq drivers.
H A Dsysfs.c17 #include "cpufreq.h"
49 /* fname is a relative path under "cpuX/cpufreq" dir */ sysfs_cpufreq_read_file()
55 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", sysfs_cpufreq_read_file()
61 /* fname is a relative path under "cpuX/cpufreq" dir */ sysfs_cpufreq_write_file()
70 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", sysfs_cpufreq_write_file()
H A Dcpufreq.c13 #include "cpufreq.h"
/linux-4.1.27/arch/arm/plat-samsung/include/plat/
H A Dcpu-freq.h14 #include <linux/cpufreq.h>
44 * struct s3c_cpufreq_freqs - s3c cpufreq notification information.
45 * @freqs: The cpufreq setting information.
H A Dcpu-freq-core.h135 * @latency: Transition latency to give to cpufreq.
/linux-4.1.27/arch/mips/loongson1/common/
H A Dplatform.c19 #include <cpufreq.h>
74 .name = "ls1x-cpufreq",
/linux-4.1.27/arch/arm/mach-s3c24xx/
H A Dmach-osiris-dvs.c17 #include <linux/cpufreq.h>
115 dev_err(&pdev->dev, "failed to register with cpufreq\n"); osiris_dvs_probe()
H A Dcpufreq-utils.c15 #include <linux/cpufreq.h>
H A Diotiming-s3c2412.c17 #include <linux/cpufreq.h>
H A Diotiming-s3c2410.c16 #include <linux/cpufreq.h>
/linux-4.1.27/arch/arm/mach-s5pv210/
H A Ds5pv210.c62 platform_device_register_simple("s5pv210-cpufreq", -1, NULL, 0); s5pv210_dt_init_late()
/linux-4.1.27/arch/arm/mach-sunxi/
H A Dsunxi.c22 platform_device_register_simple("cpufreq-dt", -1, NULL, 0); sunxi_dt_cpufreq_init()
/linux-4.1.27/tools/power/cpupower/debug/i386/
H A Dpowernow-k8-decode.c7 * linux/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
H A Dcentrino-decode.c7 * linux/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
/linux-4.1.27/tools/power/cpupower/utils/
H A Dcpupower-info.c15 #include <cpufreq.h>
H A Dcpupower-set.c15 #include <cpufreq.h>
H A Dcpufreq-info.c16 #include "cpufreq.h"
267 printf(_(" no or unknown cpufreq driver is active on this CPU\n")); debug_output_one()
325 printf(_(" available cpufreq governors: ")); debug_output_one()
359 printf(_(" cpufreq stats: ")); debug_output_one()
H A Dcpuidle-info.c15 #include <cpufreq.h>
H A Dcpuidle-set.c11 #include "cpufreq.h"
H A Dcpufreq-set.c18 #include "cpufreq.h"
/linux-4.1.27/arch/arm/mach-mvebu/
H A Dpmsu.c23 #include <linux/cpufreq-dt.h>
603 * In order to have proper cpufreq handling, we need to ensure armada_xp_pmsu_cpufreq_init()
606 * register the clock notifier and the cpufreq driver. This armada_xp_pmsu_cpufreq_init()
616 pr_warn(FW_WARN "not enabling cpufreq, deprecated armada-xp-cpu-clock binding\n"); armada_xp_pmsu_cpufreq_init()
650 * registration of the cpufreq device. for_each_possible_cpu()
665 platform_device_register_data(NULL, "cpufreq-dt", -1,
H A Dkirkwood.c39 .name = "kirkwood-cpufreq",
/linux-4.1.27/arch/powerpc/platforms/cell/
H A Dcpufreq_spudemand.c2 * spu aware cpufreq governor for the cell processor
23 #include <linux/cpufreq.h>
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dproc.c5 #include <linux/cpufreq.h>
/linux-4.1.27/arch/powerpc/platforms/pasemi/
H A Didle.c78 printk(KERN_WARNING "No cpufreq driver, powersavings modes disabled\n"); pasemi_idle_init()
/linux-4.1.27/arch/mips/loongson/lemote-2f/
H A Dclock.c10 #include <linux/cpufreq.h>
/linux-4.1.27/arch/blackfin/mach-common/
H A Ddpmc.c15 #include <linux/cpufreq.h>
/linux-4.1.27/arch/arm/mach-rockchip/
H A Drockchip.c77 platform_device_register_simple("cpufreq-dt", 0, NULL, 0); rockchip_dt_init()
/linux-4.1.27/arch/arm/lib/
H A Ddelay.c98 /* cpufreq may scale loops_per_jiffy, so keep a private copy */ register_current_timer_delay()
/linux-4.1.27/drivers/acpi/
H A Dprocessor_thermal.c32 #include <linux/cpufreq.h>
48 * _any_ cpufreq driver and not only the acpi-cpufreq driver.
H A Dprocessor_perflib.c32 #include <linux/cpufreq.h>
60 * -1 -> cpufreq low level drivers not initialized -> _PSS, etc. not called yet
62 * 0 -> cpufreq low level drivers initialized -> consider _PPC values
391 * Check that ACPI's u64 MHz will be valid as u32 KHz in cpufreq acpi_processor_get_performance_states()
451 /* We need to call _PPC once when cpufreq starts */ acpi_processor_get_performance_info()
522 * we can allow the cpufreq driver to be rmmod'ed. */ acpi_processor_notify_smm()
H A Dprocessor_driver.c34 #include <linux/cpufreq.h>
/linux-4.1.27/arch/arm/mach-omap2/
H A Dpm.c283 devinfo.name = "omap-cpufreq"; omap_init_cpufreq()
285 devinfo.name = "cpufreq-dt"; omap_init_cpufreq()
317 /* cpufreq dummy device instantiation */ omap2_common_pm_late_init()
H A Domap-pm-noop.c21 #include <linux/cpufreq.h>
H A Domap-pm.h18 #include <linux/cpufreq.h>
H A Dclkt2xxx_virt_prcm_set.c33 #include <linux/cpufreq.h>
/linux-4.1.27/arch/avr32/kernel/
H A Dtime.c31 * Their duration also changes if cpufreq changes the CPU clock rate.
/linux-4.1.27/drivers/pcmcia/
H A Dsoc_common.h14 #include <linux/cpufreq.h>
H A Dpxa2xx_base.c22 #include <linux/cpufreq.h>
H A Dsa11xx_base.c35 #include <linux/cpufreq.h>
/linux-4.1.27/drivers/gpu/drm/tilcdc/
H A Dtilcdc_drv.h22 #include <linux/cpufreq.h>
H A Dtilcdc_drv.c214 dev_err(dev->dev, "failed to register cpufreq notifier\n"); tilcdc_load()
/linux-4.1.27/arch/sh/kernel/cpu/sh4a/
H A Dclock-sh7785.c16 #include <linux/cpufreq.h>
/linux-4.1.27/arch/arm/mach-zynq/
H A Dcommon.c113 struct platform_device_info devinfo = { .name = "cpufreq-dt", }; zynq_init_machine()
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dsetup.c30 #include <linux/cpufreq.h>
475 * If the backend cpufreq driver does not exist, pnv_get_proc_freq()
/linux-4.1.27/arch/x86/kernel/
H A Dtsc.c9 #include <linux/cpufreq.h>
33 * TSC can be unstable due to cpufreq or due to unsynced TSCs
121 * that cpufreq will call its notifiers sequentially.
922 mark_tsc_unstable("cpufreq changes"); time_cpufreq_notifier()
1193 * speed as the bootup CPU. (cpufreq notifiers will fix this tsc_init()
/linux-4.1.27/drivers/xen/
H A Dxen-acpi-processor.c23 #include <linux/cpufreq.h>
443 /* Copied from powernow-k8.h, can't include ../cpufreq/powernow check_prereq()
/linux-4.1.27/drivers/regulator/
H A Danatop-regulator.c290 * a sane default until imx6-cpufreq was probed and changes the anatop_regulator_probe()
/linux-4.1.27/drivers/clk/samsung/
H A Dclk-s3c2412.c245 /* xtal alias is necessary for the current cpufreq driver */ s3c2412_common_clk_register_fixed_ext()
/linux-4.1.27/drivers/clocksource/
H A Dtime-armada-370-xp.c26 * when doing cpufreq frequency changes.
/linux-4.1.27/drivers/clk/
H A Dclk-mb86s7x.c381 platform_device_register_simple("arm-bL-cpufreq-dt", -1, NULL, 0);
/linux-4.1.27/arch/powerpc/boot/
H A Dops.h194 void dt_fixup_cpu_clocks(u32 cpufreq, u32 tbfreq, u32 busfreq);
/linux-4.1.27/arch/arm/xen/
H A Denlighten.c25 #include <linux/cpufreq.h>
/linux-4.1.27/arch/blackfin/kernel/
H A Dtime-ts.c19 #include <linux/cpufreq.h>
/linux-4.1.27/arch/cris/arch-v32/kernel/
H A Dtime.c17 #include <linux/cpufreq.h>
/linux-4.1.27/arch/arm/kernel/
H A Dsmp_twd.c146 #include <linux/cpufreq.h>
/linux-4.1.27/arch/arm/mach-davinci/
H A Dda850.c18 #include <linux/cpufreq.h>
30 #include <mach/cpufreq.h>
1066 .name = "cpufreq-davinci",
1079 /* cpufreq driver can help keep an "async" clock constant */ da850_register_cpufreq()
H A Dboard-mityomapl138.c112 pr_warn("cpufreq registration failed: %d\n", ret); mityomapl138_cpufreq_init()
/linux-4.1.27/arch/arm/mach-exynos/
H A Dexynos.c248 platform_device_register_simple("exynos-cpufreq", -1, NULL, 0); exynos_dt_machine_init()
/linux-4.1.27/drivers/mfd/
H A Ddb8500-prcmu.c36 #include <linux/cpufreq.h>
1731 /* cpufreq table frequencies is in KHz. */ round_armss_rate()
1734 /* Find the corresponding arm opp from the cpufreq table. */ cpufreq_for_each_entry()
1881 /* cpufreq table frequencies is in KHz. */ set_armss_rate()
1884 /* Find the corresponding arm opp from the cpufreq table. */ set_armss_rate()
3031 [0] = "thermal-cpufreq-0",
3038 [0] = "thermal-cpufreq-0",
3045 [0] = "thermal-cpufreq-0",
3072 .name = "cpufreq-ux500",
3073 .of_compatible = "stericsson,cpufreq-ux500",
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-davinci.c35 #include <linux/cpufreq.h>
788 dev_err(&pdev->dev, "failed to register cpufreq\n"); davinci_i2c_probe()
H A Di2c-s3c2410.c32 #include <linux/cpufreq.h>
1232 dev_err(&pdev->dev, "failed to register cpufreq notifier\n"); s3c24xx_i2c_probe()
/linux-4.1.27/drivers/video/fbdev/
H A Dnuc900fb.c33 #include <linux/cpufreq.h>
639 dev_err(&pdev->dev, "Failed to register cpufreq\n"); nuc900fb_probe()
/linux-4.1.27/drivers/watchdog/
H A Ds3c2410_wdt.c38 #include <linux/cpufreq.h>
575 dev_err(dev, "failed to register cpufreq\n"); s3c2410wdt_probe()
/linux-4.1.27/arch/arm/mach-pxa/
H A Dviper.c26 #include <linux/cpufreq.h>
904 pr_err("viper: Failed to setup cpufreq notifier\n"); viper_init_cpufreq()
H A Dzeus.c14 #include <linux/cpufreq.h>
/linux-4.1.27/drivers/gpu/drm/msm/
H A Dmsm_drv.h23 #include <linux/cpufreq.h>
/linux-4.1.27/arch/mips/include/asm/mach-loongson/
H A Dloongson.h279 #include <linux/cpufreq.h>
/linux-4.1.27/drivers/thermal/ti-soc-thermal/
H A Dti-thermal-common.c397 * loading has to happen via cpufreq driver. ti_thermal_register_cpu_cooling()
/linux-4.1.27/arch/powerpc/platforms/powermac/
H A Dcache.S23 * when going to sleep, when doing a PMU based cpufreq transition,
/linux-4.1.27/drivers/mtd/nand/
H A Ds3c2410.c41 #include <linux/cpufreq.h>
679 /* cpufreq driver support */
1037 dev_err(&pdev->dev, "failed to init cpufreq support\n"); s3c24xx_nand_probe()
/linux-4.1.27/drivers/sh/clk/
H A Dcore.c28 #include <linux/cpufreq.h>
/linux-4.1.27/arch/mips/loongson/loongson-3/
H A Dsmp.c21 #include <linux/cpufreq.h>
/linux-4.1.27/arch/arm/mach-vexpress/
H A Dspc.c589 platform_device_register_simple("vexpress-spc-cpufreq", -1, NULL, 0);

Completed in 2400 milliseconds

12