Home
last modified time | relevance | path

Searched +full:virtual +full:- +full:cpufreq (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.14.4/Documentation/devicetree/bindings/cpufreq/
Dqemu,virtual-cpufreq.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/cpufreq/qemu,virtual-cpufreq.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Virtual CPUFreq
10 - David Dai <[email protected]>
11 - Saravana Kannan <[email protected]>
14 Virtual CPUFreq is a virtualized driver in guest kernels that sends performance
21 const: qemu,virtual-cpufreq
33 - compatible
[all …]
Dairoha,en7581-cpufreq.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/cpufreq/airoha,en7581-cpufreq.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Airoha EN7581 CPUFreq
10 - Christian Marangi <[email protected]>
16 A virtual clock is exposed. This virtual clock is a get-only clock and
28 const: airoha,en7581-cpufreq
30 '#clock-cells':
33 '#power-domain-cells':
[all …]
/linux-6.14.4/drivers/cpufreq/
Dvirtual-cpufreq.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/cpufreq.h>
19 * +-------------+-------------------------------+--------+-------+
21 * +-------------+-------------------------------+--------+-------+
27 * +-------------+-------------------------------+--------+-------+
30 * +-------------+-------------------------------+--------+-------+
40 * +---------------------------------------------+--------+-------+
44 * +---------------------------------------------+--------+-------+
48 * +---------------------------------------------+--------+-------+
54 * +-------------+-------------------------------+--------+-------+
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
2 # CPUfreq core
3 obj-$(CONFIG_CPU_FREQ) += cpufreq.o freq_table.o
5 # CPUfreq stats
6 obj-$(CONFIG_CPU_FREQ_STAT) += cpufreq_stats.o
8 # CPUfreq governors
9 obj-$(CONFIG_CPU_FREQ_GOV_PERFORMANCE) += cpufreq_performance.o
10 obj-$(CONFIG_CPU_FREQ_GOV_POWERSAVE) += cpufreq_powersave.o
11 obj-$(CONFIG_CPU_FREQ_GOV_USERSPACE) += cpufreq_userspace.o
12 obj-$(CONFIG_CPU_FREQ_GOV_ONDEMAND) += cpufreq_ondemand.o
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
12 clock speed, you need to either enable a dynamic cpufreq governor
16 <file:Documentation/admin-guide/pm/cpufreq.rst>.
38 prompt "Default CPUFreq governor"
44 This option sets which CPUFreq governor shall be loaded at
51 Use the CPUFreq governor 'performance' as default. This sets
59 Use the CPUFreq governor 'powersave' as default. This sets
67 Use the CPUFreq governor 'userspace' as default. This allows
78 Use the CPUFreq governor 'ondemand' as default. This allows
80 loading your cpufreq low-level hardware driver.
[all …]
Dpcc-cpufreq.c2 * pcc-cpufreq.c - Processor Clocking Control firmware cpufreq interface
5 * Copyright (C) 2009 Hewlett-Packard Development Company, L.P.
31 #include <linux/cpufreq.h>
129 if (ioread16(&pcch_hdr->status) & CMD_COMPLETE) in pcc_cmd()
157 (pcch_virt_addr + pcc_cpu_data->input_offset)); in pcc_get_freq()
158 iowrite16(CMD_GET_FREQ, &pcch_hdr->command); in pcc_get_freq()
163 ioread32(pcch_virt_addr + pcc_cpu_data->output_offset); in pcc_get_freq()
165 /* Clear the input buffer - we are done with the current command */ in pcc_get_freq()
166 memset_io((pcch_virt_addr + pcc_cpu_data->input_offset), 0, BUF_SZ); in pcc_get_freq()
168 status = ioread16(&pcch_hdr->status); in pcc_get_freq()
[all …]
Dvexpress-spc-cpufreq.c1 // SPDX-License-Identifier: GPL-2.0
3 * Versatile Express SPC CPUFreq Interface driver
5 * Copyright (C) 2013 - 2019 ARM Ltd.
16 #include <linux/cpufreq.h>
92 /* For switcher we use virtual A7 clock rates */ in clk_get_cpu_rate()
138 ret = -EIO; in ve_spc_cpufreq_set_rate()
180 u32 cpu = policy->cpu, cur_cluster, new_cluster, actual_cluster; in ve_spc_cpufreq_set_target()
217 if (pos->frequency < min_freq) in get_table_min()
218 min_freq = pos->frequency; in get_table_min()
229 if (pos->frequency > max_freq) in get_table_max()
[all …]
/linux-6.14.4/Documentation/ABI/testing/
Dsysfs-devices-system-cpu2 Date: pre-git history
3 Contact: Linux kernel mailing list <linux-[email protected]>
18 Contact: Linux kernel mailing list <linux-[email protected]>
37 See Documentation/admin-guide/cputopology.rst for more information.
43 Contact: Linux kernel mailing list <linux-[email protected]>
58 Contact: Linux memory management mailing list <linux-[email protected]>
67 /sys/devices/system/cpu/cpu42/node2 -> ../../node/node2
77 Contact: Linux kernel mailing list <linux-[email protected]>
89 core_siblings_list: human-readable list of the logical CPU
99 thread_siblings_list: human-readable list of cpuX's hardware
[all …]
/linux-6.14.4/arch/arm/mach-spear/
Dspear1310.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/mach-spear13xx/spear1310.c
26 platform_device_register_simple("spear-cpufreq", -1, NULL, 0); in spear1310_dt_init()
31 "st,spear1310-evb",
36 * Following will create 16MB static virtual/physical mappings
37 * PHYSICAL VIRTUAL
42 .virtual = VA_SPEAR1310_RAS_GRP1_BASE,
/linux-6.14.4/arch/arm/mach-tegra/
Dtegra.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/dma-mapping.h>
34 #include <asm/hardware/cache-l2x0.h>
37 #include <asm/mach-types.h>
49 * Storage for debug-macro.S's state.
52 * kernel is loaded. The data is declared here rather than debug-macro.S so
53 * that multiple inclusions of debug-macro.S point at the same data.
60 /* Debug UART virtual address */
92 platform_device_register_simple("tegra20-cpufreq", -1, NULL, 0); in tegra_dt_init_late()
95 platform_device_register_simple("tegra-cpuidle", -1, NULL, 0); in tegra_dt_init_late()
[all …]
Dsleep-tegra30.S1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include <asm/asm-offsets.h>
81 .arch armv7-a
192 * Puts the current CPU in wait-for-event mode on the flow controller
193 * and powergates it -- flags (in R0) indicate the request type.
196 * corrupts r0-r4, r10-r12
210 add r1, r1, r12 @ virtual CSR address for this CPU
212 add r2, r2, r12 @ virtual HALT_EVENTS address for this CPU
293 * CPU power-gating process, to avoid loading from SDRAM which
294 * are not supported once SDRAM is put into self-refresh.
[all …]
/linux-6.14.4/arch/arm/mach-s5pv210/
Ds5pv210.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright (c) 2013-2014 Samsung Electronics Co., Ltd.
17 #include "regs-clock.h"
26 if (!of_flat_dt_is_compatible(node, "samsung,s5pv210-clock")) in s5pv210_fdt_map_sys()
34 iodesc.length = be32_to_cpu(reg[1]) - 1; in s5pv210_fdt_map_sys()
35 iodesc.virtual = (unsigned long)S3C_VA_SYS; in s5pv210_fdt_map_sys()
56 platform_device_register_simple("s5pv210-cpufreq", -1, NULL, 0); in s5pv210_dt_init_late()
66 DT_MACHINE_START(S5PV210_DT, "Samsung S5PC110/S5PV210-based board")
/linux-6.14.4/tools/power/x86/turbostat/
Dturbostat.83 turbostat \- Report processor frequency and idle statistics
12 .RB [ "\--interval seconds" ]
15 idle power-state statistics, temperature and power on X86 processors.
19 in one-shot upon its completion.
22 The 5-second interval can be changed using the --interval option.
26 Options can be specified with a single or double '-', and only as much of the option
27 name as necessary to disambiguate it from others is necessary. Note that options are case-sensitiv…
29 \fB--add attributes\fP add column with counter having specified 'attributes'. The 'location' attri…
38 For a complete example see "ADD PERF COUNTER EXAMPLE #2 (using virtual "cpu" device)".
39 … event for given device from /sys/bus/event_source/devices/<device>/events/<event> eg. c1-residency
[all …]
/linux-6.14.4/drivers/clk/
Dclk-scpi.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/clk-provider.h>
32 return clk->scpi_ops->clk_get_val(clk->id); in scpi_clk_recalc_rate()
52 return clk->scpi_ops->clk_set_val(clk->id, rate); in scpi_clk_set_rate()
66 const struct scpi_opp *opp = clk->info->opps; in __scpi_dvfs_round_rate()
68 for (idx = 0; idx < clk->info->count; idx++, opp++) { in __scpi_dvfs_round_rate()
69 ftmp = opp->freq; in __scpi_dvfs_round_rate()
85 int idx = clk->scpi_ops->dvfs_get_idx(clk->id); in scpi_dvfs_recalc_rate()
91 opp = clk->info->opps + idx; in scpi_dvfs_recalc_rate()
92 return opp->freq; in scpi_dvfs_recalc_rate()
[all …]
/linux-6.14.4/drivers/xen/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
32 2) control domain: xl mem-max <target-domain> <maxmem>
35 3) control domain: xl mem-set <target-domain> <memory>
51 …SUBSYSTEM=="memory", ACTION=="add", RUN+="/bin/sh -c '[ -f /sys$devpath/state ] && echo online > /…
97 to other virtual machines.
130 virtual environment, /sys/hypervisor will still be present,
145 bool "Add support for dma-buf grant access device driver extension"
150 dma-buf implementation. With this extension grant references to
151 the pages of an imported dma-buf can be exported for other domain
153 converted into a local dma-buf for local export.
[all …]
Dxen-acpi-processor.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * https://lore.kernel.org/lkml/1322673664-14642-6-git-send-email-[email protected]
15 #include <linux/cpufreq.h>
35 * - as those shrink to nr_cpu_bits (which is dependent on possible_cpu), which
40 /* Mutex to protect the acpi_ids_done - for CPU hotplug use. */
48 /* Which ACPI P-State dependencies for a enumerated processor */
56 .u.set_pminfo.id = _pr->acpi_id, in push_cxx_to_hypervisor()
64 dst_cx_states = kcalloc(_pr->power.count, in push_cxx_to_hypervisor()
67 return -ENOMEM; in push_cxx_to_hypervisor()
69 for (ok = 0, i = 1; i <= _pr->power.count; i++) { in push_cxx_to_hypervisor()
[all …]
/linux-6.14.4/arch/arm/mach-omap2/
Dclkt2xxx_virt_prcm_set.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * OMAP2xxx DVFS virtual clock functions
5 * Copyright (C) 2005-2008, 2012 Texas Instruments, Inc.
6 * Copyright (C) 2004-2010 Nokia Corporation
9 * Richard Woodruff <r-[email protected]>
30 #include <linux/cpufreq.h>
38 #include "cm-regbits-24xx.h"
48 * sys_ck_rate: the rate of the external high-frequency clock
49 * oscillator on the board. Set by the SoC-specific clock init code.
55 * omap2_table_mpu_recalc - just return the MPU speed
[all …]
/linux-6.14.4/drivers/macintosh/
Dwindfarm_pm121.c1 // SPDX-License-Identifier: GPL-2.0-only
16 * that none of the code has been re-used, it's a complete
17 * re-implementation
21 * controls with a tiny difference. The control-ids of hard-drive-fan
22 * and cpu-fan is swapped.
34 * offset : -19563152
38 * offset : -15650652
44 * offset : -15650652
48 * offset : -19563152
54 * offset : -25431900
[all …]
/linux-6.14.4/arch/sparc/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 bool "64-bit kernel" if "$(ARCH)" = "sparc"
10 Say yes to build a 64-bit kernel - formerly known as sparc64
11 Say no to build a 32-bit kernel - formerly known as sparc
155 bool "Symmetric multi-processing support"
161 If you say N here, the kernel will run on uni- and multiprocessor
171 See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
226 bool "Support for hot-pluggable CPUs"
234 source "drivers/cpufreq/Kconfig"
238 tristate "UltraSPARC-III Memory Controller driver"
[all …]
/linux-6.14.4/arch/arm/mach-sa1100/
Dgeneric.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-sa1100/generic.c
15 #include <linux/dma-mapping.h>
17 #include <linux/cpufreq.h>
23 #include <linux/irqchip/irq-sa11x0.h>
75 * Default power-off for SA1100
83 /* enable wake-up on GPIO0 (Assabet...) */ in sa1100_power_off()
102 /* Use on-chip reset capability */ in sa11x0_restart()
110 dev->dev.platform_data = data; in sa11x0_register_device()
114 dev->name, err); in sa11x0_register_device()
[all …]
/linux-6.14.4/arch/loongarch/
DKconfig1 # SPDX-License-Identifier: GPL-2.0
243 # MIPS Loongson code, to preserve Loongson-specific code paths in drivers that
274 def_bool $(as-instr,x:pcalau12i \$t0$(comma)%pc_hi20(x))
277 def_bool $(as-instr,movfcsr2gr \$t0$(comma)\$fcsr0)
280 def_bool $(cc-option,-Wa$(comma)-mthin-add-sub) || AS_IS_LLVM
283 def_bool $(as-instr,vld \$vr0$(comma)\$a0$(comma)0)
286 def_bool $(as-instr,xvld \$xr0$(comma)\$a0$(comma)0)
289 def_bool $(as-instr,movscr2gr \$a0$(comma)\$scr0)
292 def_bool $(as-instr,hvcl 0)
304 of page size and page table levels. The size of virtual memory
[all …]
/linux-6.14.4/arch/x86/kernel/cpu/
Dproc.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/cpufreq.h>
23 seq_printf(m, "physical id\t: %d\n", c->topo.pkg_id); in show_cpuinfo_core()
26 seq_printf(m, "core id\t\t: %d\n", c->topo.core_id); in show_cpuinfo_core()
27 seq_printf(m, "cpu cores\t: %d\n", c->booted_cores); in show_cpuinfo_core()
28 seq_printf(m, "apicid\t\t: %d\n", c->topo.apicid); in show_cpuinfo_core()
29 seq_printf(m, "initial apicid\t: %d\n", c->topo.initial_apicid); in show_cpuinfo_core()
49 c->cpuid_level); in show_cpuinfo_misc()
59 c->cpuid_level); in show_cpuinfo_misc()
69 cpu = c->cpu_index; in show_cpuinfo()
[all …]
/linux-6.14.4/tools/gpio/
Dgpio-sloppy-logic-analyzer.sh1 #!/bin/sh -eu
2 # SPDX-License-Identifier: GPL-2.0
6 # Copyright (C) Wolfram Sang <wsa@sang-engineering.com>
14 ladirname='gpio-sloppy-logic-analyzer'
29 $progname - helper script for the Linux Kernel Sloppy GPIO Logic Analyzer
31 -c|--cpu <n>: which CPU to isolate for sampling. Only needed once. Default <1>.
34 -d|--duration-us <SI-n>: number of microseconds to sample. Overrides -n, no default value.
35 -h|--help: print this help
36 -i|--instance <str>: name of the logic analyzer in case you have multiple instances. Default
38 -k|--kernel-debug-dir <str>: path to the kernel debugfs mountpoint. Default: <$debugdir>
[all …]
/linux-6.14.4/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * x86_energy_perf_policy -- set the energy versus performance
7 * Copyright (c) 2010 - 2017 Intel Corporation.
30 #define OPTARG_NORMAL (INT_MAX - 1)
31 #define OPTARG_POWER (INT_MAX - 2)
32 #define OPTARG_BALANCE_POWER (INT_MAX - 3)
33 #define OPTARG_BALANCE_PERFORMANCE (INT_MAX - 4)
34 #define OPTARG_PERFORMANCE (INT_MAX - 5)
103 fprintf(stderr, "scope: --cpu cpu-list [--hwp-use-pkg #] | --pkg pkg-list\n"); in usage()
104 fprintf(stderr, "field: --all | --epb | --hwp-epp | --hwp-min | --hwp-max | --hwp-desired\n"); in usage()
[all …]
/linux-6.14.4/arch/x86/kernel/
Dtsc.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/cpufreq.h>
45 * TSC can be unstable due to cpufreq or due to unsynced TSCs
83 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); in __cyc2ns_read()
84 data->cyc2ns_mul = this_cpu_read(cyc2ns.data[idx].cyc2ns_mul); in __cyc2ns_read()
85 data->cyc2ns_shift = this_cpu_read(cyc2ns.data[idx].cyc2ns_shift); in __cyc2ns_read()
116 * cyc2ns_scale needs to be a 32-bit value so that 32-bit multiplication
117 * (64-bit result) can be used.
122 * -[email protected] "math is hard, lets go shopping!"
166 * conversion algorithm shifting a 32-bit value (now specifies a 64-bit in __set_cyc2ns_scale()
[all …]

12