| /linux/arch/arm/mach-tegra/ |
| H A D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2009-2012, NVIDIA Corporation. All rights reserved. 29 #include <asm/proc-fns.h> 141 if (tegra_cpu_car_ops->rail_off_ready && in tegra_sleep_cpu() 143 return -EBUSY; in tegra_sleep_cpu() 148 * MMU-on if cache maintenance is done via Trusted Foundations in tegra_sleep_cpu() 150 * if any of secondary CPU's is online and this is the LP2-idle in tegra_sleep_cpu() 151 * code-path only for Tegra20/30. in tegra_sleep_cpu() 162 * 2) Disable D-cache. This need to be taken into account in in tegra_sleep_cpu() 164 * shall avoid the re-disable. in tegra_sleep_cpu() [all …]
|
| /linux/Documentation/arch/arm64/ |
| H A D | cpu-hotplug.rst | 1 .. SPDX-License-Identifier: GPL-2.0 15 CPU Hotplug on physical systems - CPUs not present at boot 16 ---------------------------------------------------------- 42 CPU Hotplug on virtual systems - CPUs not enabled at boot 43 --------------------------------------------------------- 46 ever have can be described at boot. There are no power-domain considerations 52 known at boot. However, vCPUs that are not enabled at boot are not marked 64 that are hot-pluggable must have the ``online capable`` bit set and the 65 ``enabled`` bit cleared in the MADT GICC structures to indicate they can be 66 enabled later. The boot CPU must be marked as ``enabled`` with its [all …]
|
| /linux/tools/testing/selftests/drivers/net/netconsole/ |
| H A D | netcons_resume.sh | 2 # SPDX-License-Identifier: GPL-2.0 14 # Finally, the test verifies that the target is re-enabled automatically and 19 set -euo pipefail 21 SCRIPTDIR=$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") 83 OUTPUT_FILE="/tmp/${TARGET}-${BINDMODE}" 90 # Target should be enabled 91 wait_target_state "cmdline0" "enabled" 99 # restoring mac addresses. Target should be re-enabled. 101 wait_target_state "cmdline0" "enabled" 111 busywait "${BUSYWAIT_TIMEOUT}" test -s "${OUTPUT_FILE}" || true [all …]
|
| /linux/drivers/tty/hvc/ |
| H A D | hvc_dcc.c | 1 // SPDX-License-Identifier: GPL-2.0 42 struct earlycon_device *dev = con->data; in dcc_early_write() 44 uart_console_write(&dev->port, s, n, dcc_uart_console_putchar); in dcc_early_write() 52 while (--count && (__dcc_getstatus() & DCC_STATUS_TX)) in dcc_early_console_setup() 56 return -ENODEV; in dcc_early_console_setup() 58 device->con->write = dcc_early_write; in dcc_early_console_setup() 93 * Check if the DCC is enabled. If CONFIG_HVC_DCC_SERIALIZE_SMP is enabled, 103 * If we're not on core 0, but we previously confirmed that DCC is in hvc_dcc_check() 142 /* While we're at it, check for any input characters */ in dcc_put_work() 180 * Write characters directly to the DCC if we're on core 0 and the FIFO [all …]
|
| /linux/fs/xfs/scrub/ |
| H A D | scrub.h | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2017-2023 Oracle. All Rights Reserved. 39 if (likely(++widget->resched_nr < 100)) in xchk_maybe_relax() 41 widget->resched_nr = 0; in xchk_maybe_relax() 43 if (unlikely(time_after_eq(jiffies, widget->next_resched))) { in xchk_maybe_relax() 45 widget->next_resched = XCHK_RELAX_NEXT; in xchk_maybe_relax() 48 if (widget->killable && fatal_signal_pending(current)) in xchk_maybe_relax() 49 return -EINTR; in xchk_maybe_relax() 57 * to back out gracefully if there isn't enough memory. Force-cast to avoid 73 ST_PERAG, /* per-AG metadata */ [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | irq_64.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 8 * Copyright (C) 1996-2001 Cort Dougan 39 #include <linux/radix-tree.h> 74 WARN_ON(!(local_paca->irq_happened & PACA_IRQ_HARD_DIS)); in next_interrupt() 79 * We are responding to the next interrupt, so interrupt-off in next_interrupt() 90 if (local_paca->irq_happened & irq) { in irq_happened_test_and_clear() 91 local_paca->irq_happened &= ~irq; in irq_happened_test_and_clear() 108 WARN_ON(!(local_paca->irq_happened & PACA_IRQ_HARD_DIS)); in __replay_soft_interrupts() 109 WARN_ON(local_paca->irq_happened & PACA_IRQ_REPLAYING); in __replay_soft_interrupts() [all …]
|
| /linux/drivers/clk/bcm/ |
| H A D | clk-kona.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include "clk-kona.h" 12 #include <linux/clk-provider.h> 28 /* Produces a mask of set bits covering a range of a 32-bit value */ 31 return ((1 << width) - 1) << shift; in bitfield_mask() 53 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value() 61 return (u64)div->u.fixed; in scaled_div_min() 72 return (u64)div->u.fixed; in scaled_div_max() 74 reg_div = ((u32)1 << div->u.s.width) - 1; in scaled_div_max() 89 return (u32)(scaled_div - ((u64)1 << div->u.s.frac_width)); in divider() [all …]
|
| H A D | clk-raspberrypi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Even though clk-bcm2835 provides an interface to the hardware registers for 7 * We're not allowed to change it directly as we might race with the 8 * over-temperature and under-voltage protections provided by the firmware. 14 #include <linux/clk-provider.h> 19 #include <soc/bcm2835/raspberrypi-firmware.h> 35 [RPI_FIRMWARE_PIXEL_BVB_CLK_ID] = "pixel-bvb", 110 * resulting in a bus lockup when we're accessing the 111 * registers even if it's enabled. 131 * in a bus lockup. Therefore, make sure it's enabled [all …]
|
| /linux/block/ |
| H A D | blk-iolatency.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Block rq-qos base io controller 7 * - It's bio based, so the latency covers the whole block layer in addition to 9 * - We will throttle all IO that comes in here if we need to. 10 * - We use the mean latency over the 100ms window. This is because writes can 13 * - By default there's no throttling, we set the queue_depth to UINT_MAX so 14 * that we can have as many outstanding bio's as we're allowed to. Only at 21 * a group at the end of some other path if we're only configred at leaf level. 44 * number of IO's we're allowed to have in flight. This starts at (u64)-1 down 50 * REQ_META or REQ_SWAP. If we are already at qd == 1 and we're getting a lot [all …]
|
| /linux/tools/sched_ext/ |
| H A D | README.md | 11 Some of the examples are performant, production-ready schedulers. That is, for 18 types of workloads or scenarios they're designed to accommodate, and whether or 19 not they're production ready. For more details on any of these schedulers, 47 non-trivial ones. 72 This is a large, auto-generated header file that contains all of the types 74 [BTF](https://docs.kernel.org/bpf/btf.html) (i.e. with the BTF-related Kconfig 101 bpf_printk("Task %s enabled in example scheduler", p->comm); 119 3. At `../../vmlinux` (i.e. at the root of the kernel tree where you're 122 4. `/boot/vmlinux- [all...] |
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_dcb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013-2014 Chelsio Communications. All rights reserved. 15 "DCBx-CIN", 16 "DCBx-CEE 1.01", 17 "DCBx-IEEE", 36 struct port_dcb_info *dcb = &pi->dcb; in cxgb4_dcb_state_init() 37 int version_temp = dcb->dcb_version; in cxgb4_dcb_state_init() 40 dcb->state = CXGB4_DCB_STATE_START; in cxgb4_dcb_state_init() 42 dcb->dcb_version = version_temp; in cxgb4_dcb_state_init() 45 __func__, pi->port_id); in cxgb4_dcb_state_init() [all …]
|
| /linux/arch/arm/kernel/ |
| H A D | entry-common.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/kernel/entry-common.S 14 #include <asm/unistd-oabi.h> 19 #include "entry-header.S" 37 * have tracing, context tracking and rseq debug disabled - the overheads 45 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing 60 * or rseq debug is enabled. As we will need to call out to some C functions, 70 /* do_rseq_syscall needs interrupts enabled. */ 75 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing 81 /* Slower path - fall through to work_pending */ [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | symbols.py | 6 # Copyright (c) Siemens AG, 2011-2013 17 import re 39 # Disable pagination while reporting symbol (re-)loading. 64 kaslr_offset_phys = paddr_vmcoreinfo_note - 1 66 gdb.execute("symbol-file {0} -o {1}".format( 92 # It is unlikely that someone will run lx-symbols at these points. 113 """(Re-)loa [all...] |
| /linux/kernel/sched/ |
| H A D | idle.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 * sched_idle_set_state - Record idle state for the current CPU. 34 cpu_idle_force_poll--; in cpu_idle_poll_ctrl() 109 * default_idle_call - Default CPU idle routine. 138 return -EBUSY; in call_cpuidle_s2idle() 151 dev->last_residency_ns = 0; in call_cpuidle() 153 return -EBUSY; in call_cpuidle() 159 * care of re-enabling the local interrupts in call_cpuidle() 173 * cpuidle_idle_call - the main idle function 189 * case, exit the function after re-enabling the local IRQ. in cpuidle_idle_call() [all …]
|
| /linux/security/integrity/evm/ |
| H A D | evm_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005-2010 IBM Corporation 41 .enabled = IS_ENABLED(CONFIG_SECURITY_SELINUX) 45 .enabled = IS_ENABLED(CONFIG_SECURITY_SMACK) 49 .enabled = IS_ENABLED(CONFIG_EVM_EXTRA_SMACK_XATTRS) 53 .enabled = IS_ENABLED(CONFIG_EVM_EXTRA_SMACK_XATTRS) 57 .enabled [all...] |
| /linux/arch/arm/include/debug/ |
| H A D | samsung.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * most widely re-used */ 54 tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? 56 @ FIFO enabled... 78 tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? 80 @ FIFO enabled...
|
| /linux/Documentation/power/ |
| H A D | suspend-and-interrupts.rst | 10 ----------------------------------- 14 ->prepare, ->suspend and ->suspend_late callbacks have been executed for all 29 Device IRQs are re-enabled during system resume, right before the "early" phase 30 of resuming devices (that is, before starting to execute ->resume_early 35 ------------------------ 38 suspend-resume cycle, including the "noirq" phases of suspending and resuming 41 but also to IPIs and to some other special-purpose interrupts. 44 requesting a special-purpose interrupt. It causes suspend_device_irqs() to 45 leave the corresponding IRQ enabled so as to allow the interrupt to work as 46 expected during the suspend-resume cycle, but does not guarantee that the [all …]
|
| /linux/Documentation/virt/kvm/x86/ |
| H A D | running-nested-guests.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 can be KVM-based or a different hypervisor). The straightforward 12 .----------------. .----------------. 17 |----------------'--'----------------| 22 .------------------------------------------------------. 25 |------------------------------------------------------| 27 '------------------------------------------------------' 31 - L0 – level-0; the bare metal host, running KVM 33 - L1 – level-1 guest; a VM running on L0; also called the "guest 36 - L2 – level-2 guest; a VM running on L1, this is the "nested guest" [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | irqinit.c | 1 // SPDX-License-Identifier: GPL-2.0 35 * ISA PIC or low IO-APIC triggered (INTA-cycle or APIC) interrupts: 36 * (these are usually mapped to vectors 0x30-0x3f) 40 * The IO-APIC gives us many more interrupt sources. Most of these 45 * IO-APIC registers. 47 * (these are usually mapped into the 0x30-0xff vector range) 51 [0 ... NR_VECTORS - 1] = VECTOR_UNUSED, 56 struct irq_chip *chip = legacy_pic->chip; in init_ISA_irqs() 60 * Try to set up the through-local-APIC virtual wire mode earlier. in init_ISA_irqs() 62 * On some 32-bit UP machines, whose APIC has been disabled by BIOS in init_ISA_irqs() [all …]
|
| /linux/Documentation/driver-api/crypto/iaa/ |
| H A D | iaa-crypto.rst | 1 .. SPDX-License-Identifier: GPL-2.0 18 higher-level compression devices such as zswap. 25 represented by selecting the 'deflate-iaa' crypto compression 28 # echo deflate-iaa > /sys/module/zswap/parameters/compressor 38 'deflate-iaa'. (Because the IAA hardware has a 4k history-window 52 Cryptographic API -> Hardware crypto devices -> Support for Intel(R) IAA Compression Accelerator 59 …Cryptographic API -> Hardware crypto devices -> Support for Intel(R) IAA Compression -> Enable Int… 63 The following config options should also be enabled:: 78 - Scalable 79 - Legacy [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-s3c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* drivers/rtc/rtc-s3c.c 30 #include "rtc-s3c.h" 61 ret = clk_enable(info->rtc_clk); in s3c_rtc_enable_clk() 65 if (info->data->needs_src_clk) { in s3c_rtc_enable_clk() 66 ret = clk_enable(info->rtc_src_clk); in s3c_rtc_enable_clk() 68 clk_disable(info->rtc_clk); in s3c_rtc_enable_clk() 77 if (info->data->needs_src_clk) in s3c_rtc_disable_clk() 78 clk_disable(info->rtc_src_clk); in s3c_rtc_disable_clk() 79 clk_disable(info->rtc_clk); in s3c_rtc_disable_clk() [all …]
|
| /linux/drivers/parisc/ |
| H A D | power.c | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (c) 2001-2023 Helge Deller <deller@gmx.de> 8 * Support of the soft power switch button may be enabled or disabled at 85 /* soft power switch enabled/disabled */ 90 .procname = "soft-power", 122 * Non-Gecko-style machines: in kpowerswd() 174 * be executed any longer. This function then re-enables 175 * the soft-power switch and allows the user to switch off 183 /* re-enable the soft-power switch */ in parisc_panic_event() 193 /* qemu soft power-off function */ [all …]
|
| /linux/tools/cgroup/ |
| H A D | iocost_monitor.py | 7 This is a drgn script to monitor the blk-iocost cgroup controller. 8 See the comment at the top of block/blk-iocost.c for more details. 13 import re 23 parser.add_argument('--cgroup', action='append', metavar='REGEX', 25 parser.add_argument('--interval', '-i', metavar='SECONDS', type=float, default=1, 28 parser.add_argument('--json', action='store_true', 45 err('The kernel does not have iocost enabled') 70 return blkcg.css.cgroup.kn.name.string_().decode('utf-8') 97 self.enabled = ioc.enabled.value_() 117 'enabled' : self.enabled, [all …]
|
| /linux/include/linux/ |
| H A D | preempt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * include/linux/preempt.h - macros for accessing and manipulating 18 * - bits 0-7 are the preemption count (max preemption depth: 256) 19 * - bits 8-15 are the softirq count (max # of softirqs: 256) 20 * - bits 16-23 are the hardirq disable count (max # of hardirq disable: 256) 21 * - bits 24-27 are the hardirq count (max # of hardirqs: 16) 22 * - bit 28 is the NMI flag (no nesting count, tracked separately) 30 * NMI nesting depth is tracked in a separate per-CPU variable 39 * separate word and that allows 64bit load-store architectures to 'set' 42 * (single-copy) atomically, without having to resort to full atomic [all …]
|
| /linux/arch/openrisc/mm/ |
| H A D | fault.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 27 #define TLB_OFFSET(add) (((add) >> PAGE_SHIFT) & (NUM_TLB_ENTRIES-1)) 29 /* __PHX__ :: - check the vmalloc_fault in do_page_fault() 30 * - also look into include/asm/mmu_context.h 59 * We fault-in kernel-space virtual memory on-demand. The in do_page_fault() 82 /* If exceptions were enabled, we can reenable them here */ in do_page_fault() 89 * been enabled or disabled. If they were enabled, in do_page_fault() 92 if (regs->sr && (SPR_SR_IEE | SPR_SR_TEE)) in do_page_fault() 96 mm = tsk->mm; in do_page_fault() [all …]
|