/linux/tools/power/cpupower/utils/ |
H A D | cpufreq-set.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (C) 2004-2009 Dominik Brodowski <linux@dominikbrodowski.de> 25 {"max", required_argument, NULL, 'u'}, 27 {"freq", required_argument, NULL, 'f'}, 35 "- Do you have proper administration rights? (super-user?)\n" in print_error() 36 "- Is the governor you requested available and modprobed?\n" in print_error() 37 "- Trying to set an invalid policy?\n" in print_error() 38 "- Trying to set a specific frequency, but userspace governor is not available,\n" in print_error() 49 {"hz", -3}, 68 unsigned long freq; in string_to_frequency() local [all …]
|
H A D | cpufreq-info.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (C) 2004-2009 Dominik Brodowski <linux@dominikbrodowski.de> 39 value[LINE_LEN - 1] = '\0'; in count_cpus() 40 if (strlen(value) < (LINE_LEN - 2)) in count_cpus() 62 unsigned long min, max; in proc_cpufreq_output() local 64 printf(_(" minimum CPU frequency - maximum CPU frequency - governor\n")); in proc_cpufreq_output() 72 if (cpufreq_get_hardware_limits(cpu, &min, &max)) { in proc_cpufreq_output() 73 max = 0; in proc_cpufreq_output() 75 min_pctg = (policy->min * 100) / max; in proc_cpufreq_output() 76 max_pctg = (policy->max * 100) / max; in proc_cpufreq_output() [all …]
|
/linux/samples/bpf/ |
H A D | sampleip_user.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include "perf-sys.h" 31 printf("USAGE: sampleip [-F freq] [duration]\n"); in usage() 32 printf(" -F freq # sample frequency (Hertz), default 99\n"); in usage() 36 static int sampling_start(int freq, struct bpf_program *prog, in sampling_start() argument 43 .freq = 1, in sampling_start() 44 .sample_period = freq, in sampling_start() 50 pmu_fd = sys_perf_event_open(&pe_sample_attr, -1 /* pid */, i, in sampling_start() 51 -1 /* group_fd */, 0 /* flags */); in sampling_start() 86 return ((struct ipcount *)p1)->count - ((struct ipcount *)p2)->count; in count_cmp() [all …]
|
/linux/Documentation/devicetree/bindings/memory-controllers/ddr/ |
H A D | jedec,lpddr2-timings.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2-timings.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR2 SDRAM AC timing parameters for a given speed-bin 10 - Krzysztof Kozlowski <krzk@kernel.org> 14 const: jedec,lpddr2-timings 16 max-freq: 19 Maximum DDR clock frequency for the speed-bin, in Hz. 21 min-freq: [all …]
|
H A D | jedec,lpddr3-timings.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr3-timings.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR3 SDRAM AC timing parameters for a given speed-bin 10 - Krzysztof Kozlowski <krzk@kernel.org> 14 const: jedec,lpddr3-timings 19 Maximum DDR clock frequency for the speed-bin, in Hz. 20 Property is deprecated, use max-freq. 23 max-freq: [all …]
|
/linux/Documentation/admin-guide/pm/ |
H A D | intel-speed-select.rst | 1 .. SPDX-License-Identifier: GPL-2.0 14 - https://www.intel.com/content/www/us/en/architecture-and-technology/speed-select-technology-artic… 15 - https://builders.intel.com/docs/networkbuilders/intel-speed-select-technology-base-frequency-enha… 19 dynamically without pre-configuring via BIOS setup options. This dynamic 29 intel-speed-select configuration tool 32 Most Linux distribution packages may include the "intel-speed-select" tool. If not, 38 # cd tools/power/x86/intel-speed-select/ 43 ------------ 47 # intel-speed-select --help 49 The top-level help describes arguments and features. Notice that there is a [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | elpida_ecb240abacn.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 compatible = "elpida,ECB240ABACN","jedec,lpddr2-s4"; 10 io-width = <32>; 12 tRPab-min-tck = <3>; 13 tRCD-min-tck = <3>; 14 tWR-min-tck = <3>; 15 tRASmin-min-tck = <3>; 16 tRRD-min-tck = <2>; 17 tWTR-min-tck = <2>; 18 tXP-min-tck = <2>; [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | atmel,sama5d2-pdmic.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/sound/atmel,sama5d2-pdmic.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Claudiu Beznea <claudiu.beznea@microchip.com> 20 const: atmel,sama5d2-pdmic 30 - description: peripheral clock 31 - description: generated clock 33 clock-names: 35 - const: pclk [all …]
|
/linux/drivers/cpufreq/ |
H A D | cpufreq_userspace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * (C) 2002 - 2004 Dominik Brodowski <linux@brodo.de> 25 * cpufreq_set - set the CPU frequency 26 * @policy: pointer to policy struct where freq is being set 27 * @freq: target frequency in kHz 29 * Sets the CPU frequency to freq. 31 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set() argument 33 int ret = -EINVAL; in cpufreq_set() 34 struct userspace_policy *userspace = policy->governor_data; in cpufreq_set() 36 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set() [all …]
|
/linux/drivers/devfreq/ |
H A D | governor_simpleondemand.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 /* Default constants for DevFreq-Simple-Ondemand (DFSO) */ 19 unsigned long *freq) in devfreq_simple_ondemand_func() argument 26 struct devfreq_simple_ondemand_data *data = df->data; in devfreq_simple_ondemand_func() 32 stat = &df->last_status; in devfreq_simple_ondemand_func() 35 if (data->upthreshold) in devfreq_simple_ondemand_func() 36 dfso_upthreshold = data->upthreshold; in devfreq_simple_ondemand_func() 37 if (data->downdifferential) in devfreq_simple_ondemand_func() 38 dfso_downdifferential = data->downdifferential; in devfreq_simple_ondemand_func() 42 return -EINVAL; in devfreq_simple_ondemand_func() [all …]
|
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_clock.c | 1 // SPDX-License-Identifier: GPL-2.0-only 58 delta_us = timespec_to_us(&ts2) - timespec_to_us(&ts1); in measure_clock() 59 } while (delta_us > MEASURE_CLOCK_DELTA_THRESHOLD_US && --tries); in measure_clock() 63 return -ETIMEDOUT; in measure_clock() 74 return -EIO; in measure_clock() 77 delta_us = timespec_to_us(&ts4) - timespec_to_us(&ts3); in measure_clock() 78 } while (delta_us > MEASURE_CLOCK_DELTA_THRESHOLD_US && --tries); in measure_clock() 82 return -ETIMEDOUT; in measure_clock() 85 delta_us = timespec_to_us(&ts3) - timespec_to_us(&ts1); in measure_clock() 87 return -EINVAL; in measure_clock() [all …]
|
/linux/kernel/sched/ |
H A D | cpufreq_schedutil.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * CPUFreq governor based on scheduler-provided CPU utilization data. 54 /* The field below is for single-CPU policies only: */ 69 * Since cpufreq_update_util() is called with rq->lock held for in sugov_should_update_freq() 70 * the @target_cpu, our per-CPU data is fully serialized. in sugov_should_update_freq() 72 * However, drivers cannot in general deal with cross-CPU in sugov_should_update_freq() 83 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq() 86 if (unlikely(READ_ONCE(sg_policy->limits_changed))) { in sugov_should_update_freq() 87 WRITE_ONCE(sg_policy->limits_changed, false); in sugov_should_update_freq() 88 sg_policy->need_freq_update = true; in sugov_should_update_freq() [all …]
|
/linux/drivers/sh/clk/ |
H A D | core.c | 4 * Copyright (C) 2005 - 2010 Paul Mundt 8 * Copyright (C) 2004 - 2008 Nokia Corporation 46 unsigned long freq; in clk_rate_table_build() local 49 clk->nr_freqs = nr_freqs; in clk_rate_table_build() 55 if (src_table->divisors && i < src_table->nr_divisors) in clk_rate_table_build() 56 div = src_table->divisors[i]; in clk_rate_table_build() 58 if (src_table->multipliers && i < src_table->nr_multipliers) in clk_rate_table_build() 59 mult = src_table->multipliers[i]; in clk_rate_table_build() 62 freq = CPUFREQ_ENTRY_INVALID; in clk_rate_table_build() 64 freq = clk->parent->rate * mult / div; in clk_rate_table_build() [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos5250-spring.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 10 #include <dt-bindings/clock/samsung,s2mps11.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 13 #include <dt-bindings/input/input.h> 19 chassis-type = "laptop"; 33 stdout-path = "serial3:115200n8"; 36 gpio-keys { 37 compatible = "gpio-keys"; [all …]
|
H A D | exynos5250-snow-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/clock/maxim,max77686.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/sound/samsung-i2s.h> 30 stdout-path = "serial3:115200n8"; 33 gpio-keys { 34 compatible = "gpio-keys"; 35 pinctrl-names = "default"; [all …]
|
/linux/drivers/media/tuners/ |
H A D | tda18271-common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 tda18271-common.c - driver for the Philips / NXP TDA18271 silicon tuner 9 #include "tda18271-priv.h" 13 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_i2c_gate_ctrl() 17 switch (priv->gate) { in tda18271_i2c_gate_ctrl() 20 gate = priv->gate; in tda18271_i2c_gate_ctrl() 24 switch (priv->mode) { in tda18271_i2c_gate_ctrl() 37 if (fe->ops.analog_ops.i2c_gate_ctrl) in tda18271_i2c_gate_ctrl() 38 ret = fe->ops.analog_ops.i2c_gate_ctrl(fe, enable); in tda18271_i2c_gate_ctrl() 41 if (fe->ops.i2c_gate_ctrl) in tda18271_i2c_gate_ctrl() [all …]
|
/linux/drivers/thermal/ |
H A D | cpufreq_cooling.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2012-2018 Linaro Limited. 29 * Cooling state <-> CPUFreq frequency 37 * level 0 --> 1st Max Freq 38 * level 1 --> 2nd Max Freq 43 * struct time_in_idle - Idle time stats 53 * struct cpufreq_cooling_device - data for cooling device with cpufreq 85 * @freq: Frequency 90 unsigned int freq) in get_level() argument 96 table = em_perf_state_from_pd(cpufreq_cdev->em); in get_level() [all …]
|
/linux/tools/power/cpupower/po/ |
H A D | fr.po | 9 "Project-Id-Version: cpufrequtils 0.1-pre2\n" 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 12 "PO-Revision-Date: 2004-11-17 15:53+1000\n" 13 "Last-Translator: Bruno Ducrot <ducrot@poupinou.org>\n" 14 "Language-Team: NONE\n" 16 "MIME-Version: 1.0\n" 17 "Content-Type: text/plain; charset=ISO-8859-1\n" 18 "Content-Transfer-Encoding: 8bit\n" 72 #: utils/idle_monitor/cpupower-monitor.c:66 [all …]
|
H A D | de.po | 3 # Copyright (C) 2004-2009 Dominik Brodowski <linux@dominikbrodowski.net> 8 "Project-Id-Version: cpufrequtils 006\n" 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 11 "PO-Revision-Date: 2019-06-02 15:23+0200\n" 12 "Last-Translator: Benjamin Weis <benjamin.weis@gmx.com>\n" 13 "Language-Team: NONE\n" 15 "MIME-Version: 1.0\n" 16 "Content-Type: text/plain; charset=UTF-8\n" 17 "Content-Transfer-Encoding: 8bit\n" [all …]
|
H A D | cs.po | 10 "Project-Id-Version: cs\n" 11 "Report-Msgid-Bugs-To: \n" 12 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 13 "PO-Revision-Date: 2008-06-11 16:26+0200\n" 14 "Last-Translator: Karel Volný <kavol@seznam.cz>\n" 15 "Language-Team: Czech <diskuze@lists.l10n.cz>\n" 17 "MIME-Version: 1.0\n" 18 "Content-Type: text/plain; charset=UTF-8\n" 19 "Content-Transfer-Encoding: 8bit\n" 20 "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" [all …]
|
H A D | pt.po | 9 "Project-Id-Version: cpufrequtils 004\n" 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 12 "PO-Revision-Date: 2008-06-14 22:16-0400\n" 13 "Last-Translator: Claudio Eduardo <claudioeddy@gmail.com>\n" 14 "MIME-Version: 1.0\n" 15 "Content-Type: text/plain; charset=UTF-8\n" 16 "Content-Transfer-Encoding: 8bit\n" 70 #: utils/idle_monitor/cpupower-monitor.c:66 71 #, c-format [all …]
|
H A D | it.po | 2 # Copyright (C) 2004-2009 9 "Project-Id-Version: cpufrequtils 0.3\n" 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 12 "PO-Revision-Date: 2009-08-15 12:00+0900\n" 13 "Last-Translator: Mattia Dongili <malattia@gmail.com>\n" 14 "Language-Team: NONE\n" 16 "MIME-Version: 1.0\n" 17 "Content-Type: text/plain; charset=UTF-8\n" 18 "Content-Transfer-Encoding: 8bit\n" [all …]
|
/linux/tools/testing/selftests/intel_pstate/ |
H A D | run.sh | 2 # SPDX-License-Identifier: GPL-2.0 29 # files can be re-evaluated by setting EVALUATE_ONLY to 1 below. 33 # Kselftest framework requirement - SKIP code is 4. 36 if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then 47 if ! command -v cpupower &> /dev/null; then 52 max_cpus=$(($(nproc)-1)) 65 grep MHz /proc/cpuinfo | sort -u > /tmp/result.freqs 66 num_freqs=$(wc -l /tmp/result.freqs | awk ' { print $1 } ') 67 if [ $num_freqs -ge 2 ]; then 68 tail -n 1 /tmp/result.freqs > /tmp/result.$1 [all …]
|
/linux/drivers/media/dvb-frontends/ |
H A D | stb0899_algo.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 50 struct stb0899_internal *internal = &state->internal; 55 return stb0899_calc_srate(internal->master_clk, sfr); 71 dprintk(state->verbose, FE_DEBUG, 1, "-->"); in stb0899_set_srate() 122 struct stb0899_internal *internal = &state->internal; in stb0899_carr_width() 124 return (internal->srate + (internal->srate * internal->rolloff) / 100); in stb0899_carr_width() 133 struct stb0899_internal *internal = &state->internal; in stb0899_first_subrange() 134 struct stb0899_params *params = &state->params; in stb0899_first_subrange() 135 struct stb0899_config *config = state->config; in stb0899_first_subrange() 140 if (config->tuner_get_bandwidth) { in stb0899_first_subrange() [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
H A D | eeprom.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2009 Nick Kossifidis <mickflemm@gmail.com> 4 * Copyright (c) 2008-2009 Felix Fietkau <nbd@openwrt.org> 49 if (ee->ee_version > AR5K_EEPROM_VERSION_3_2) in ath5k_eeprom_bin2freq() 52 val = bin > 62 ? (10 * 62) + (5 * (bin - 62)) + 5100 : in ath5k_eeprom_bin2freq() 55 if (ee->ee_version > AR5K_EEPROM_VERSION_3_2) in ath5k_eeprom_bin2freq() 75 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; in ath5k_eeprom_init_header() 89 if (ah->ah_ee_version < AR5K_EEPROM_VERSION_3_0) in ath5k_eeprom_init_header() 101 eep_max = (eep_max | val) - AR5K_EEPROM_INFO_BASE; in ath5k_eeprom_init_header() 109 ATH5K_ERR(ah, "Invalid max custom EEPROM size: " in ath5k_eeprom_init_header() [all …]
|