| /linux/tools/perf/bench/ |
| H A D | synthesize.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "../util/synthetic-events.h" 22 #include <subcmd/parse-options.h> 32 OPT_BOOLEAN('s', "st", &run_st, "Run single threaded benchmark"), 33 OPT_BOOLEAN('t', "mt", &run_mt, "Run multi-threaded benchmark"), 34 OPT_UINTEGER('m', "min-threads", &min_threads, 36 OPT_UINTEGER('M', "max-threads", &max_threads, 38 OPT_UINTEGER('i', "single-iterations", &single_iterations, 39 "Number of iterations used to compute single-threaded average"), 40 OPT_UINTEGER('I', "multi-iterations", &multi_iterations, [all …]
|
| /linux/tools/testing/selftests/membarrier/ |
| H A D | membarrier_test_multi_thread.c | 1 // SPDX-License-Identifier: GPL-2.0 69 /* Multi-threaded */ in main()
|
| /linux/fs/squashfs/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 tristate "SquashFS 4.0 - Squashed file system support" 7 Read-Only File System). Squashfs is a highly compressed read-only 16 Squashfs is intended for general read-only filesystem use, for 19 and tools are available from github.com/plougher/squashfs-tools. 88 decompression. Each one exhibits various trade-offs between 91 If in doubt, select "Single threaded compression" 94 bool "Single threaded compression" 97 Traditionally Squashfs has used single-threaded decompression. 126 decompression is load-balanced across the cores. [all …]
|
| H A D | decompressor_multi_percpu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 * This file implements multi-threaded decompression using percpu 36 return ERR_PTR(-ENOMEM); in squashfs_decompressor_create() 40 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create() 41 if (IS_ERR(stream->stream)) { in squashfs_decompressor_create() 42 err = PTR_ERR(stream->stream); in squashfs_decompressor_create() 45 local_lock_init(&stream->lock); in squashfs_decompressor_create() 54 if (!IS_ERR_OR_NULL(stream->stream)) in squashfs_decompressor_create() 55 msblk->decompressor->free(stream->stream); in squashfs_decompressor_create() 64 (void __percpu *)(unsigned long) msblk->stream; in squashfs_decompressor_destroy() [all …]
|
| H A D | decompressor_multi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 * This file implements multi-threaded decompression in the 55 mutex_lock(&stream->mutex); in put_decomp_stream() 56 list_add(&decomp_strm->list, &stream->strm_list); in put_decomp_stream() 57 mutex_unlock(&stream->mutex); in put_decomp_stream() 58 wake_up(&stream->wait); in put_decomp_stream() 66 int err = -ENOMEM; in squashfs_decompressor_create() 72 stream->comp_opts = comp_opts; in squashfs_decompressor_create() 73 mutex_init(&stream->mutex); in squashfs_decompressor_create() 74 INIT_LIST_HEAD(&stream->strm_list); in squashfs_decompressor_create() [all …]
|
| /linux/include/acpi/platform/ |
| H A D | acenv.h | 1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 4 * Name: acenv.h - Host and compiler configuration 6 * Copyright (C) 2000 - 2025, Intel Corp. 15 * to the local environment. This includes compiler-specific, OS-specific, 16 * and machine-specific configuration. 35 /* Common application configuration. All single threaded except for acpi_exec. */ 205 * EFI applications can be built with -nostdlib, in this case, it must be 230 /* 64-bit data types */ 255 /* NULL/invalid value to use for destroyed or not-yet-created semaphores. */ 261 /* Flush CPU cache - used when going to sleep. Wbinvd or similar. */ [all …]
|
| /linux/Documentation/devicetree/bindings/dma/ |
| H A D | img-mdc-dma.txt | 1 * IMG Multi-threaded DMA Controller (MDC) 4 - compatible: Must be "img,pistachio-mdc-dma". 5 - reg: Must contain the base address and length of the MDC registers. 6 - interrupts: Must contain all the per-channel DMA interrupts. 7 - clocks: Must contain an entry for each entry in clock-names. 8 See ../clock/clock-bindings.txt for details. 9 - clock-names: Must include the following entries: 10 - sys: MDC system interface clock. 11 - img,cr-periph: Must contain a phandle to the peripheral control syscon 13 - img,max-burst-multiplier: Must be the maximum supported burst size multiplier. [all …]
|
| /linux/Documentation/staging/ |
| H A D | xz.rst | 1 .. SPDX-License-Identifier: 0BSD 19 For userspace, `XZ Utils`_ provide a zlib-like compression library 20 and a gzip-like command line tool. 28 The xz_dec module provides XZ decompressor with single-call (buffer 29 to buffer) and multi-call (stateful) APIs in include/linux/xz.h. 39 - ``$(call if_changed,xzkern)`` is for compressing the kernel image. 40 It runs the script scripts/xz_wrap.sh which uses arch-optimized 43 - ``$(call if_changed,xzkern_with_size)`` is like ``xzkern`` above but 44 this also appends a four-byte trailer containing the uncompressed size 47 - Other things can be compressed with ``$(call if_needed,xzmisc)`` [all …]
|
| /linux/Documentation/devicetree/bindings/mailbox/ |
| H A D | mediatek,gce-props.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mailbox/mediatek,gce-props.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Houlong Wei <houlong.wei@mediatek.com> 13 The Global Command Engine (GCE) is an instruction based, multi-threaded, 14 single-core command dispatcher for MediaTek hardware. The Command Queue 18 We use mediatek,gce-mailbox.yaml to define the properties for CMDQ mailbox 28 mediatek,gce-events: 32 The property mediatek,gce-events is used to obtain the event IDs. [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | res_spin_lock.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2024-2025 Meta Platforms, Inc. and affiliates. */ 58 prog_fd = bpf_program__fd(skel->progs.res_spin_lock_test); in test_res_spin_lock_success() 63 prog_fd = bpf_program__fd(skel->progs.res_spin_lock_test_held_lock_max); in test_res_spin_lock_success() 68 /* Multi-threaded ABBA deadlock. */ in test_res_spin_lock_success() 70 prog_fd = bpf_program__fd(skel->prog in test_res_spin_lock_success() [all...] |
| /linux/tools/perf/jvmti/ |
| H A D | jvmti_agent.c | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 59 int fd, ret = -1; in get_e_machine() 66 if (fd == -1) in get_e_machine() 67 return -1; in get_e_machine() 81 hdr->elf_mach = info.e_machine; in get_e_machine() 110 return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns() 147 strftime(str, sizeof(str), JIT_LANG"-jit-%Y%m%d", &tm); in create_jit_cache_dir() 154 return -1; in create_jit_cache_dir() 157 if (ret == -1) { in create_jit_cache_dir() 160 return -1; in create_jit_cache_dir() [all …]
|
| /linux/drivers/irqchip/ |
| H A D | irq-mips-cpu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 * may be used for IPIs in multi-threaded single-core systems. 42 set_c0_status(IE_SW0 << d->hwirq); in unmask_mips_irq() 48 clear_c0_status(IE_SW0 << d->hwirq); in mask_mips_irq() 71 clear_c0_cause(C_SW0 << d->hwirq); in mips_mt_cpu_irq_startup() 84 clear_c0_cause(C_SW0 << d->hwirq); in mips_mt_cpu_irq_ack() 141 irq = fls(pending) - 1; in plat_irq_dispatch() 186 struct cpu_ipi_domain_state *state = domain->host_data; in mips_cpu_ipi_alloc() 191 hwirq = find_first_zero_bit(state->allocated, 2); in mips_cpu_ipi_alloc() 193 return -EBUSY; in mips_cpu_ipi_alloc() [all …]
|
| /linux/drivers/md/dm-vdo/ |
| H A D | completion.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include "status-codes.h" 27 * At each step of a multi-threaded operation, the completion performing the operation is given a 43 * is next run. It is a bug to attempt to set the result or re-finish a finished completion. 46 * programming errors. It can not be used for cross-thread checking on the status of an operation. 56 completion->vdo = vdo; in vdo_initialize_completion() 57 completion->type = type; in vdo_initialize_completion() 63 VDO_ASSERT_LOG_ONLY(!completion->complete, "completion is not complete"); in assert_incomplete() 67 * vdo_set_completion_result() - Set the result of a completion. 74 if (completion->result == VDO_SUCCESS) in vdo_set_completion_result() [all …]
|
| /linux/arch/arc/include/asm/ |
| H A D | mmu_context.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 6 * -Refactored get_new_mmu_context( ) to only handle live-mm. 7 * retiring-mm handled in other hooks 10 * -Major rewrite of Core ASID allocation routine get_new_mmu_context 21 #include <asm-generic/mm_hooks.h> 25 * MMU tags TLBs with an 8-bit ASID, avoiding need to flush the TLB on 26 * context-switch. 32 * Each task is assigned unique ASID, with a simple round-robin allocator 33 * tracked in @asid_cpu. When 8-bit value rolls over,a new cycle is started [all …]
|
| /linux/Documentation/admin-guide/ |
| H A D | cgroup-v2.rst | 1 .. _cgroup-v2: 11 conventions of cgroup v2. It describes all userland-visible aspects 14 v1 is available under :ref:`Documentation/admin-guide/cgroup-v1/index.rst <cgroup-v1>`. 22 1-1. Terminology 23 1-2. What is cgroup? 25 2-1. Mounting 26 2-2. Organizing Processes and Threads 27 2-2-1. Processes 28 2-2-2. Threads 29 2-3. [Un]populated Notification [all …]
|
| /linux/fs/xfs/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 on the SGI IRIX platform. It is completely multi-threaded, can 17 for complete details. This implementation is on-disk compatible 51 bool "Support deprecated case-insensitive ascii (ascii-ci=1) format" 56 on systems that have been coerced into using ISO 8859-1, and it does 58 the locale settings in userspace, so it corrupts UTF-8 names. 66 beginning with "ascii-ci=". If the string "ascii-ci=1" is found, the 67 filesystem is a case-insensitive filesystem. If no such string is 74 To continue supporting case-insensitivity (ascii-ci=1), say Y. 85 higher level guarantee of consistency. The on-disk data format for [all …]
|
| /linux/Documentation/networking/ |
| H A D | scaling.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 multi-processor systems. 17 - RSS: Receive Side Scaling 18 - RPS: Receive Packet Steering 19 - RFS: Receive Flow Steering 20 - Accelerated Receive Flow Steering 21 - XPS: Transmit Packet Steering 28 (multi-queue). On reception, a NIC can send different packets to different 33 generally known as “Receive-side Scaling” (RSS). The goal of RSS and 35 Multi-queue distribution can also be used for traffic prioritization, but [all …]
|
| /linux/Documentation/PCI/ |
| H A D | pci-error-recovery.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 :Authors: - Linas Vepstas <linasvepstas@gmail.com> 9 - Richard Lary <rlary@us.ibm.com> 10 - Mike Mason <mmlnx@us.ibm.com> 17 and the PCI-host bridges found on IBM Power4, Power5 and Power6-based 32 including multiple instances of a device driver on multi-function 34 waiting for some i/o-space register to change, when it never will. 39 is forced by the need to handle multi-function devices, that is, 42 of reset it desires, the choices being a simple re-enabling of I/O 47 After a reset and/or a re-enabling of I/O, all drivers are [all …]
|
| /linux/Documentation/admin-guide/media/ |
| H A D | philips.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 E-mail: webcam@smcc.demon.nl Last updated: 2004-01-19 30 * Samsung MPC-C10 31 * Samsung MPC-C30 33 * AME CU-001 34 * Visionite VCS-UM100 35 * Visionite VCS-UC300 46 the latter, since it makes troubleshooting a lot easier. The built-in 50 camera; some programs depend on a particular image-size or -format and 60 Specifies the desired framerate. Is an integer in the range of 4-30. [all …]
|
| /linux/Documentation/admin-guide/hw-vuln/ |
| H A D | tsx_async_abort.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 TAA - TSX Asynchronous Abort 11 ------------------- 23 ------------ 28 CVE-2019-11135 TAA TSX Asynchronous Abort (TAA) condition on some 36 ------- 43 hardware transactional memory support to improve performance of multi-threaded 58 Because the buffers are potentially shared between Hyper-Threads cross 59 Hyper-Thread attacks are possible. 70 ---------------- [all …]
|
| /linux/arch/mips/include/asm/ |
| H A D | mipsmtregs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright (C) 2004 - 2005 MIPS Technologies, Inc. All rights reserved. 289 /* enable multi-threaded execution if previous suggested it should be.
|
| /linux/include/linux/ |
| H A D | zstd_lib.h | 1 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ 6 * This source code is licensed under both the BSD-style license (found in the 9 * You may select, at your option, one of the above-listed licenses. 40 * typically with -Wno-deprecated-declarations for gcc or _CRT_SECURE_NO_WARNINGS in Visual. 61 real-time compression scenarios at zlib-level and better compression ratios. 62 The zstd compression library provides in-memory compression and decompression 66 which is currently 22. Levels >= 20, labeled `--ultra`, should be used with 72 - a single step (described as Simple API) 73 - a single step, reusing a context (described as Explicit context) 74 - unbounded multiple steps (described as Streaming compression) [all …]
|
| /linux/Documentation/arch/arm/ |
| H A D | cluster-pm-race-avoidance.rst | 2 Cluster-wide Power-up/power-down race avoidance algorithm 16 --------- 29 cluster-level operations are only performed when it is truly safe to do 35 disabling those mechanisms may itself be a non-atomic operation (such as 38 power-down and power-up at the cluster level. 46 ----------- 50 - DOWN 51 - COMING_UP 52 - UP 53 - GOING_DOWN [all …]
|
| /linux/drivers/leds/ |
| H A D | leds-turris-omnia.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/led-class-multicolor.h> 13 #include <linux/turris-omnia-mcu-interface.h> 22 * struct omnia_led - per-LED part of driver private data structure 23 * @mc_cdev: multi-color LED class device 24 * @subled_info: per-channel information 25 * @cached_channels: cached values of per-channel brightness that was sent to the MCU 41 * struct omnia_leds - driver private data structure 47 * @leds: flexible array of per-LED data 70 ret = omnia_cmd_set_color(client, led->reg, led->subled_info[0].brightness, in omnia_led_send_color_cmd() [all …]
|
| /linux/drivers/net/ethernet/3com/ |
| H A D | 3c589_cs.c | 5 * Copyright (C) 1999 David A. Hinds -- dahinds@users.sourceforge.net 124 #define WN0_IRQ 0x08 /* Window 0: Set IRQ line in bits 12-15. */ 200 dev_dbg(&link->dev, "3c589_attach()\n"); in tc589_probe() 205 return -ENOMEM; in tc589_probe() 207 link->priv = dev; in tc589_probe() 208 lp->p_dev = link; in tc589_probe() 210 spin_lock_init(&lp->lock); in tc589_probe() 211 link->resource[0]->end = 16; in tc589_probe() 212 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; in tc589_probe() 214 link->config_flags |= CONF_ENABLE_IRQ; in tc589_probe() [all …]
|