| /linux/arch/arm64/kvm/hyp/include/nvhe/ |
| H A D | memory.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 * Bits 0-1 are used to encode the memory ownership state of each page from the 19 * hyp_vmemmap for the host and hyp states or in PTE software bits for guests. 27 * 'Meta-states' are not stored directly in PTE SW bits for guest 28 * states, but inferred from the context (e.g. invalid PTE entries). 29 * For the host and hyp, meta-states are stored directly in the 54 /* Host state. Guarded by the host stage-2 lock. */ 58 * Complement of the hyp state. Guarded by the hyp stage-1 lock. We use 70 #define __hyp_va(phys) ((void *)((phys_addr_t)(phys) - hyp_physvirt_offset)) 94 #define hyp_page_to_pfn(page) ((struct hyp_page *)(page) - hyp_vmemmap) [all …]
|
| /linux/tools/power/cpupower/man/ |
| H A D | cpupower-set.1 | 1 .TH CPUPOWER\-SET "1" "22/02/2011" "" "cpupower Manual" 3 cpupower\-set \- Set processor power related kernel or hardware configurations 6 .B cpupower set [ \-b VAL | \-e POLICY | \-m MODE | \-t BOOL ] 15 described in the cpupower(1) manpage in the \-\-cpu option section. Whether an 24 \-\-perf-bias, \-b 30 The range of valid numbers is 0-15, where 0 is maximum 33 The processor uses this information in model-specific ways 34 when it must select trade-offs between performance and 37 This policy hint does not supersede Processor Performance states 38 (P-states) or CPU Idle power states (C-states), but allows [all …]
|
| /linux/tools/power/x86/x86_energy_perf_policy/ |
| H A D | x86_energy_perf_policy.8 | 1 .\" This page Copyright (C) 2010 - 2015 Len Brown <len.brown@intel.com> 5 x86_energy_perf_policy \- Manage Energy vs. Performance Policy 10 .RB "scope: \-\-cpu\ cpu-list | \-\-pkg\ pkg-list" 12 .RB "cpu-list, pkg-lis [all...] |
| /linux/drivers/firmware/arm_scmi/ |
| H A D | powercap.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #define pr_fmt(fmt) "SCMI Notifications POWERCAP - " fmt 118 #define THRESH_LOW(p, id) \ argument 119 (lower_32_bits((p)->states[(id)].thresholds)) 120 #define THRESH_HIGH(p, id) \ argument 121 (upper_32_bits((p)->states[(id)].thresholds)) 129 struct scmi_powercap_state *states; member 148 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, 0, in scmi_powercap_attributes_get() 153 ret = ph->xops->do_xfer(ph, t); in scmi_powercap_attributes_get() 157 attributes = get_unaligned_le32(t->rx.buf); in scmi_powercap_attributes_get() [all …]
|
| /linux/include/rv/ |
| H A D | ltl_monitor.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 29 return &task->rv[ltl_monitor_slot].ltl_mon; in ltl_get_monitor() 36 memset(&mon->states, 0, sizeof(mon->states)); in ltl_task_init() 39 __set_bit(i, mon->unknown_atoms); in ltl_task_init() 52 struct task_struct *g, *p; in ltl_monitor_init() local 65 for_each_process_thread(g, p) in ltl_monitor_init() 66 ltl_task_init(p, false); in ltl_monitor_init() 88 task->comm, task->pid); in ltl_illegal_state() 99 __clear_bit(atom, mon->unknown_atoms); in ltl_atom_set() 101 __set_bit(atom, mon->atoms); in ltl_atom_set() [all …]
|
| /linux/tools/power/cpupower/bindings/python/ |
| H A D | test_raw_pylibcpupower.py | 2 # SPDX-License-Identifier: GPL-2.0-only 4 import raw_pylibcpupower as p namespace 11 cpu_cstates_count = p.cpuidle_state_count(0) 12 if cpu_cstates_count > -1: 13 print(f"CPU 0 has {cpu_cstates_count} c-states") 20 cstate_disabled = p.cpuidle_state_disable(0, 0, 1) 25 case -1: 27 case -2: 29 case -3: 30 print(f"No write access to disable/enable C-states: try using sudo") [all …]
|
| /linux/drivers/xen/ |
| H A D | xen-acpi-processor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * https://lore.kernel.org/lkml/1322673664-14642-6-git-send-email-konrad.wilk@oracle.com 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() 70 cx = &_pr->power.states[i]; in push_cxx_to_hypervisor() [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | 8xx_immap.h | 10 * functional files.....but anyone else is welcome to try. -- Dan 95 /*----------------------------------------------------------------------- 96 * BR - Memory Controller: Base Register 16-9 107 #define BR_MS_GPCM 0x00000000 /* G.P.C.M. Machine Select */ 108 #define BR_MS_UPMA 0x00000080 /* U.P.M.A Machine Select */ 109 #define BR_MS_UPMB 0x000000c0 /* U.P.M.B Machine Select */ 112 /*----------------------------------------------------------------------- 113 * OR - Memory Controller: Option Register 16-11 127 #define OR_SCY_0_CLK 0x00000000 /* 0 clock cycles wait states */ 128 #define OR_SCY_1_CLK 0x00000010 /* 1 clock cycles wait states */ [all …]
|
| /linux/Documentation/admin-guide/thermal/ |
| H A D | intel_powerclamp.rst | 6 - Arjan van de Ven <arjan@linux.intel.com> 7 - Jacob Pan <jacob.jun.pan@linux.intel.com> 12 - Goals and Objectives 15 - Idle Injection 16 - Calibration 19 - Effectiveness and Limitations 20 - Power vs Performance 21 - Scalability 22 - Calibration 23 - Comparison with Alternative Techniques [all …]
|
| /linux/drivers/acpi/ |
| H A D | processor_perflib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * processor_perflib.c - ACPI Processor P-States Library ($Revision: 71 $) 9 * - Added processor hotplug support 39 * -1 -> cpufreq low level drivers not initialized -> _PSS, etc. not called yet 41 * 0 -> cpufreq low level drivers initialized -> consider _PPC values 42 * 1 -> ignore _PPC totally -> forced by user through boot param 44 static int ignore_ppc = -1; 60 return -EINVAL; in acpi_processor_get_platform_limit() 64 * (e.g. 0 = states 0..n; 1 = states 1..n; etc. in acpi_processor_get_platform_limit() 66 status = acpi_evaluate_integer(pr->handle, "_PPC", NULL, &ppc); in acpi_processor_get_platform_limit() [all …]
|
| /linux/tools/tracing/rtla/src/ |
| H A D | utils.c | 1 // SPDX-License-Identifier: GPL-2.0 27 * err_msg - print an error message to the stderr 42 * debug_msg - print a debug message to stderr if debug is set 60 * fatal - print an error message and EOL to stderr and exit with ERROR 75 * get_llong_from_str - get a long long int from a string 85 return -1; in get_llong_from_str() 91 * get_duration - fill output with a human readable duration since start_time 103 tm_info->tm_yday, in get_duration() 104 tm_info->tm_hour, in get_duration() 105 tm_info->tm_min, in get_duration() [all …]
|
| /linux/Documentation/admin-guide/pm/ |
| H A D | cpufreq.rst | 1 .. SPDX-License-Identifier: GPL-2.0 20 Operating Performance Points or P-states (in ACPI terminology). As a rule, 24 time (or the more power is drawn) by the CPU in the given P-state. Therefore 29 as possible and then there is no reason to use any P-states different from the 30 highest one (i.e. the highest-performance frequency/voltage configuration 38 put into different P-states. 41 capacity, so as to decide which P-states to put the CPUs into. Of course, since 64 information on the available P-states (or P-state ranges in some cases) and 65 access platform-specific hardware interfaces to change CPU P-states as requested 70 performance scaling algorithms for P-state selection can be represented in a [all …]
|
| H A D | amd-pstate.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 ``amd-pstate`` CPU Performance Scaling Driver 16 ``amd-pstate`` is the AMD CPU performance scaling driver that introduces a 20 than legacy ACPI hardware P-States. Current AMD CPU/APU platforms are using 21 the ACPI P-states driver to manage CPU frequency and clocks with switching 22 only in 3 P-states. CPPC replaces the ACPI P-states controls and allows a 23 flexible, low-latency interface for the Linux kernel to directly 26 ``amd-pstate`` leverages the Linux kernel governors such as ``schedutil``, 30 Volume 2: System Programming [1]_). Currently, ``amd-pstate`` supports basic 40 continuous, abstract, and unit-less performance value in a scale that is [all …]
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | gss_krb5_seal.c | 4 * Adapted from MIT Kerberos 5-1.2.1 lib/gssapi/krb5/k5seal.c 6 * Copyright (c) 2000-2008 The Regents of the University of Michigan. 40 * Export of this software from the United States of America may require 41 * a specific license from the United States Government. It is the 79 u8 *p, flags = 0x00; in setup_token_v2() local 81 if ((ctx->flags & KRB5_CTX_FLAG_INITIATOR) == 0) in setup_token_v2() 83 if (ctx->flags & KRB5_CTX_FLAG_ACCEPTOR_SUBKEY) in setup_token_v2() 89 krb5_hdr = (u16 *)token->data; in setup_token_v2() 93 p = (u8 *)ptr; in setup_token_v2() 94 *p++ = flags; in setup_token_v2() [all …]
|
| /linux/drivers/cpufreq/ |
| H A D | powernow-k8.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * (c) 2003-2006 Advanced Micro Devices, Inc. 9 u32 numps; /* number of p-states */ 10 u32 batps; /* number of p-states supported on battery */ 13 * vid/fid pairings, but are modified during the ->target() call 32 * used to determine valid frequency/vid/fid states */ 36 * handle hotplug events - so just point at cpufreq pol->cpus 53 /* Model Specific Registers for p-state transitions. MSRs are 64-bit. For */ 54 /* writes (wrmsr - opcode 0f 30), the register number is placed in ecx, and */ 55 /* the value to write is placed in edx:eax. For reads (rdmsr - opcode 0f 32), */ [all …]
|
| /linux/drivers/i2c/muxes/ |
| H A D | i2c-demux-pinctrl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-16 by Wolfram Sang, Sang Engineering <wsa@sang-engineering.com> 6 * Copyright (C) 2015-16 by Renesas Electronics Corporation 9 * (look for filenames containing 'i2c-demux-pinctrl' in Documentation/) 40 struct i2c_demux_pinctrl_priv *priv = adap->algo_data; in i2c_demux_master_xfer() 41 struct i2c_adapter *parent = priv->chan[priv->cur_chan].parent_adap; in i2c_demux_master_xfer() 48 struct i2c_demux_pinctrl_priv *priv = adap->algo_data; in i2c_demux_functionality() 49 struct i2c_adapter *parent = priv->chan[priv->cur_chan].parent_adap; in i2c_demux_functionality() 51 return parent->algo->functionality(parent); in i2c_demux_functionality() 57 struct pinctrl *p; in i2c_demux_activate_master() local [all …]
|
| /linux/Documentation/tools/rtla/ |
| H A D | common_timerlat_options.txt | 1 .. |threshold| replace:: **-a/--auto**, **-i/--irq**, or **-T/--thread** 2 .. |thresharg| replace:: -T 6 For time-sensitive actions, it is recommended to run **rtla timerlat** with BPF 11 **-a**, **--auto** *us* 14 while debugging the system. It is equivalent to use **-T** *us* **-s** *us* 15 **-t**. By default, *timerlat* tracer uses FIFO:95 for *timerlat* threads, 16 thus equivalent to **-P** *f:95*. 18 **-p**, **--period** *us* 22 **-i**, **--irq** *us* 26 **-T**, **--thread** *us* [all …]
|
| /linux/drivers/pinctrl/ |
| H A D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2011 ST-Ericsson SA 6 * Written on behalf of Linaro for ST-Ericsson 14 #include <linux/radix-tree.h> 30 * struct pinctrl_dev - pin control class device 46 * @p: result of pinctrl_get() for this device 68 struct pinctrl *p; member 78 * struct pinctrl - per-device pin control state holder 81 * @states: a list of states for this device 90 struct list_head states; member [all …]
|
| /linux/Documentation/trace/ |
| H A D | events-power.rst | 8 - Power state switch which reports events related to suspend (S-states), 9 cpuidle (C-states) and cpufreq (P-states) 10 - System clock related changes 11 - Power domains related changes and transitions 22 ----------------- 24 A 'cpu' event class gathers the CPU-related events: cpuidle and 39 Note: the value of '-1' or '4294967295' for state means an exit from the current state, 46 correctly draw the states diagrams and to calculate accurate statistics etc.
|
| /linux/include/linux/ |
| H A D | rcupdate.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Read-Copy Update mechanism for mutual exclusion 15 * For detailed explanation of Read-Copy Update mechanism see - 34 #define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b)) 35 #define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b)) 38 #define RCU_SEQ_STATE_MASK ((1 << RCU_SEQ_CTR_SHIFT) - 1) 50 // not-yet-completed RCU grace periods. 54 * same_state_synchronize_rcu - Are two old-state values identical? 55 * @oldstate1: First old-state value. 56 * @oldstate2: Second old-state value. [all …]
|
| /linux/Documentation/trace/rv/ |
| H A D | deterministic_automata.rst | 10 - *X* is the set of states; 11 - *E* is the finite set of events; 12 - x\ :subscript:`0` is the initial state; 13 - X\ :subscript:`m` (subset of *X*) is the set of marked (or final) states. 14 - *f* : *X* x *E* -> *X* $ is the transition function. It defines the state 22 - *X* = { ``preemptive``, ``non_preemptive``} 23 - *E* = { ``preempt_enable``, ``preempt_disable``, ``sched_waking``} 24 - x\ :subscript:`0` = ``preemptive`` 25 - X\ :subscript:`m` = {``preemptive``} 26 - *f* = [all …]
|
| /linux/Documentation/driver-api/ |
| H A D | pin-control.rst | 9 - Enumerating and naming controllable pins 11 - Multiplexing of pins, pads, fingers (etc) see below for details 13 - Configuration of pins, pads, fingers (etc), such as software-controlled 14 biasing and driving mode specific pins, such as pull-up, pull-down, open drain, 17 Top-level interface 22 - A PIN CONTROLLER is a piece of hardware, usually a set of registers, that 26 - PINS are equal to pads, fingers, balls or whatever packaging input or 30 be sparse - i.e. there may be gaps in the space with numbers where no 60 .. code-block:: c 97 See ``arch/arm/mach-ux500/Kconfig`` for an example. [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_log_priv.h | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc. 73 * Below are states for covering allocation transactions. 74 * By covering, we mean changing the h_tail_lsn in the last on-disk 75 * log write such that no allocation transactions will be re-done during 76 * recovery after a system crash. Recovery starts at the last on-disk 79 * These states are used to insert dummy log entries to cover 80 * space allocation transactions which can undo non-transactiona 688 void *p; xlog_kvmalloc() local [all...] |
| /linux/drivers/virt/acrn/ |
| H A D | hypercall.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 53 * hcall_sos_remove_cpu() - Remove a vCPU of Service VM 64 * hcall_create_vm() - Create a User VM 75 * hcall_start_vm() - Start a User VM 86 * hcall_pause_vm() - Pause a User VM 97 * hcall_destroy_vm() - Destroy a User VM 108 * hcall_reset_vm() - Reset a User VM 119 * hcall_set_vcpu_regs() - Set up registers of virtual CPU of a User VM 131 * hcall_inject_msi() - Deliver a MSI interrupt to a User VM 143 * hcall_vm_intr_monitor() - Set a shared page for User VM interrupt statistics [all …]
|
| /linux/kernel/sched/ |
| H A D | stats.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 rq->rq_sched_info.run_delay += delta; in rq_sched_info_arrive() 17 rq->rq_sched_info.pcount++; in rq_sched_info_arrive() 28 rq->rq_cpu_time += delta; in rq_sched_info_depart() 35 rq->rq_sched_info.run_delay += delta; in rq_sched_info_dequeue() 47 void __update_stats_wait_start(struct rq *rq, struct task_struct *p, 50 void __update_stats_wait_end(struct rq *rq, struct task_struct *p, 52 void __update_stats_enqueue_sleeper(struct rq *rq, struct task_struct *p, 85 # define __update_stats_wait_start(rq, p, stats) do { } while (0) argument 86 # define __update_stats_wait_end(rq, p, stats) do { } while (0) argument [all …]
|