Home
last modified time | relevance | path

Searched full:threaded (Results 1 – 25 of 326) sorted by relevance

12345678910>>...14

/linux/tools/testing/selftests/net/
H A Dnl_netdev.py40 Test that verifies various cases of napi threaded
54 # set napi threaded and verify
55 nf.napi_set({'id': napi0_id, 'threaded': "enabled"})
57 ksft_eq(napi0['threaded'], "enabled")
62 ksft_eq(napi1['threaded'], "disabled")
68 # verify if napi threaded is still set
70 ksft_eq(napi0['threaded'], "enabled")
75 ksft_eq(napi1['threaded'], "disabled")
78 # unset napi threaded and verify
79 nf.napi_set({'id': napi0_id, 'threaded': "disabled"})
[all …]
/linux/tools/testing/selftests/drivers/net/
H A Dnapi_threaded.py5 Test napi threaded states.
16 ksft_eq(napi['threaded'], 'enabled')
22 ksft_eq(napi['threaded'], 'disabled')
26 def _set_threaded_state(cfg, threaded) -> None: argument
27 cmd(f"echo {threaded} > /sys/class/net/{cfg.ifname}/threaded")
35 threaded = cmd(f"cat /sys/class/net/{cfg.ifname}/threaded").stdout
36 defer(_set_threaded_state, cfg, threaded)
43 Test that when napi threaded is enabled at device level and
44 then disabled at napi level for one napi, the threaded state
56 # set threaded
[all …]
/linux/tools/perf/bench/
H A Dsynthesize.c32 OPT_BOOLEAN('s', "st", &run_st, "Run single threaded benchmark"),
33 OPT_BOOLEAN('t', "mt", &run_mt, "Run multi-threaded benchmark"),
39 "Number of iterations used to compute single-threaded average"),
41 "Number of iterations used to compute multi-threaded average"),
137 "Computing performance of single threaded perf event synthesis by\n" in run_single_threaded()
227 "Computing performance of multi threaded perf event synthesis by\n" in run_multi_threaded()
260 * If neither single threaded or multi-threaded are specified, default in bench_synthesize()
261 * to running just single threaded. in bench_synthesize()
/linux/drivers/firmware/tegra/
H A Dbpmp.c224 clear_bit(index, bpmp->threaded.allocated); in tegra_bpmp_channel_read()
228 up(&bpmp->threaded.lock); in tegra_bpmp_channel_read()
257 err = down_timeout(&bpmp->threaded.lock, usecs_to_jiffies(timeout)); in tegra_bpmp_write_threaded()
263 index = find_first_zero_bit(bpmp->threaded.allocated, count); in tegra_bpmp_write_threaded()
276 set_bit(index, bpmp->threaded.allocated); in tegra_bpmp_write_threaded()
283 set_bit(index, bpmp->threaded.busy); in tegra_bpmp_write_threaded()
289 clear_bit(index, bpmp->threaded.allocated); in tegra_bpmp_write_threaded()
292 up(&bpmp->threaded.lock); in tegra_bpmp_write_threaded()
678 busy = bpmp->threaded.busy; in tegra_bpmp_handle_rx()
719 bpmp->threaded.count = bpmp->soc->channels.thread.count; in tegra_bpmp_probe()
[all …]
H A Dbpmp-tegra186.c176 for (i = 0; i < bpmp->threaded.count; i++) { in tegra186_bpmp_teardown_channels()
293 for (i = 0; i < bpmp->threaded.count; i++) { in tegra186_bpmp_setup_channels()
316 for (i = 0; i < bpmp->threaded.count; i++) in tegra186_bpmp_reset_channels()
/linux/kernel/irq/
H A Dspurious.c174 pr_cont(" threaded [<%p>] %ps", action->thread_fn, action->thread_fn); in __report_bad_irq()
235 * We cannot call note_interrupt from the threaded handler in note_interrupt()
237 * (primary and threaded). Aside of that in the threaded in note_interrupt()
239 * hardware interrupt while we are dealing with a threaded in note_interrupt()
245 * The threaded handlers store whether they successfully in note_interrupt()
250 * mechanism, but for the non forced threaded case we'd just in note_interrupt()
276 * Check whether one of the threaded handlers in note_interrupt()
302 * None of the threaded handlers felt in note_interrupt()
316 * threaded handlers on the same line. Clear in note_interrupt()
H A Dmanage.c81 * associated threaded handlers into account.
84 * parts (hardirq and threaded handler) have completed.
86 * Returns: false if a threaded handler is active.
113 * threaded handlers are active. in __synchronize_irq()
721 * Returns: false if a threaded handler is active.
972 * Default primary interrupt handler for threaded interrupts. Is
982 * Primary handler for nested threaded interrupts. Should never be
1070 * Oneshot interrupts keep the irq line masked until the threaded
1125 * Interrupts explicitly requested as threaded interrupts want to be
1141 * Interrupts which are not explicitly requested as threaded
[all …]
/linux/tools/memory-model/Documentation/
H A Dsimple.txt22 Single-threaded code
25 In single-threaded code, there is no reordering, at least assuming
28 threaded context as the kernel can enter the same code path on multiple
38 this lock at a given time, your code will be executed single-threaded.
61 Despite the scalability limitations of single-threaded code, RCU
64 single-threaded grace-period processing is use of batching, where all
75 being completely single-threaded, it is often possible to use library
89 With code locking, we use single-threaded code execution to guarantee
93 in the code execution that will execute as though it is single threaded.
114 a single-threaded approach while providing excellent performance and
/linux/tools/testing/selftests/cgroup/
H A Dtest_core.c276 * A (domain threaded) - B (threaded) - C (domain) in test_cgcore_invalid_domain()
279 * threaded cgroup. "cgroup.type" file will report "domain (invalid)" in in test_cgcore_invalid_domain()
306 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_invalid_domain()
345 * Test that when a child becomes threaded in test_cgcore_parent_becomes_threaded()
346 * the parent type becomes domain threaded. in test_cgcore_parent_becomes_threaded()
367 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_parent_becomes_threaded()
370 if (cg_read_strcmp(parent, "cgroup.type", "domain threaded\n"))
387 * Test that there's no internal process constrain on threaded cgroups. in test_cgcore_no_internal_process_constraint_on_threads()
413 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads()
[all...]
/linux/scripts/coccinelle/misc/
H A Dirqf_oneshot.cocci2 /// Since commit 1c6c69525b40 ("genirq: Reject bogus threaded irq requests")
3 /// threaded IRQs without a primary handler need to be requested with
106 msg = "WARNING: Threaded IRQ with no primary handler requested without IRQF_ONESHOT (unless it is n…
112 msg = "WARNING: Threaded IRQ with no primary handler requested without IRQF_ONESHOT (unless it is n…
/linux/Documentation/admin-guide/
H A Dcgroup-v2.rst317 Controllers which support thread mode are called threaded controllers.
320 Marking a cgroup threaded makes it join the resource domain of its
321 parent as a threaded cgroup. The parent may be another threaded
323 of a threaded subtree, that is, the nearest ancestor which is not
324 threaded, is called threaded domain or thread root interchangeably and
327 Inside a threaded subtree, threads of a process can be put in
329 constraint - threaded controllers can be enabled on non-leaf cgroups
332 As the threaded domain cgroup hosts all the domain resource
335 can't have populated child cgroups which aren't threaded. Because the
337 serve both as a threaded domain and a parent to domain cgroups.
[all …]
/linux/Documentation/PCI/
H A Dboot-interrupts.rst56 irq_default_primary_handler threaded usb_hcd_irq
63 The use of threaded interrupts is the most likely condition to trigger
64 this problem today. Threaded interrupts may not be re-enabled after the IRQ
65 handler wakes. These "one shot" conditions mean that the threaded interrupt
66 needs to keep the interrupt line masked until the threaded handler has run.
/linux/Documentation/netlink/specs/
H A Dnetdev.yaml89 name: napi-threaded
267 threaded mode. If NAPI is not in threaded mode (i.e. uses normal
291 name: threaded
292 doc: Whether the NAPI is configured to operate in threaded polling
294 in threaded polling mode.
296 enum: napi-threaded
708 - threaded
761 - threaded
/linux/include/linux/
H A Dinterrupt.h53 * Used by threaded interrupts which need to keep the
54 * irq line disabled until the threaded handler has been run.
59 * IRQF_NO_THREAD - Interrupt cannot be threaded
97 * IRQC_IS_NESTED - interrupt runs in a nested threaded context
115 * @thread_fn: interrupt handler function for threaded interrupts
116 * @thread: thread pointer for threaded interrupts
159 * Primary handler for threaded interrupts
542 frequency threaded job scheduling. For almost all the purposes
612 * With forced-threaded interrupts enabled a raised softirq is deferred to
613 * ksoftirqd unless it can be handled within the threaded interrupt. This
[all …]
H A Dirqdesc.h46 * @threads_handled: stats field for deferred spurious detection of threaded handlers
47 * @threads_handled_last: comparator field for deferred spurious detection of threaded handlers
54 * @wait_for_threads: wait queue for sync_irq to wait for threaded handlers
/linux/Documentation/networking/
H A Dnapi.rst19 but there is an option to use :ref:`separate kernel threads<threaded>`
148 IRQs are threaded (such as if ``PREEMPT_RT`` is enabled).
431 Threaded NAPI
434 Threaded NAPI is an operating mode that uses dedicated kernel
446 Threaded NAPI is controlled by writing 0/1 to the ``threaded`` file in
454 $ ynl --family netdev --do napi-set --json='{"id": 66, "threaded": 1}'
/linux/include/acpi/platform/
H A Dacenv.h35 /* Common application configuration. All single threaded except for acpi_exec. */
304 * Use single threaded if the entire subsystem is contained in an application
305 * Use multiple threaded when the subsystem is running in the kernel.
307 * By default the model is single threaded if ACPI_APPLICATION is set,
308 * multi-threaded if ACPI_APPLICATION is not set.
/linux/Documentation/usb/
H A Ddwc3.rst34 - threaded handler of the device
45 - threaded handler of the EP-interrupt
/linux/drivers/pinctrl/qcom/
H A Dtlmm-test.c63 * @thread_op: operations to be performed by the threaded IRQ handler
65 * be performed by the threaded IRQ handler
362 * 10 threaded interrupts
414 * Drive line high 10 times, threaded handler drives it low to "clear the
439 * Drive line low 10 times, threaded handler drives it high to "clear the
465 * threaded handler to simulate a new interrupt, repeated 10 times, assert we
490 * threaded handler to simulate a new interrupt, repeated 10 times, assert we
/linux/drivers/pci/hotplug/
H A DTODO10 hardirq handler cpqhp_ctrl_intr(). Convert this to threaded IRQ handling.
51 simplified by converting it to threaded IRQ handling. Use pciehp as a
/linux/Documentation/ABI/testing/
H A Dsysfs-class-net341 What: /sys/class/net/<iface>/threaded
346 Boolean value to control the threaded mode per device. User could
347 set this value to enable/disable threaded mode for all napi
352 0 threaded mode disabled for this dev
353 1 threaded mode enabled for this dev
/linux/net/core/
H A Ddev.h330 return n->config->threaded; in napi_get_threaded_config()
331 return dev->threaded; in napi_get_threaded_config()
335 enum netdev_napi_threaded threaded);
338 enum netdev_napi_threaded threaded);
/linux/fs/squashfs/
H A DKconfig91 If in doubt, select "Single threaded compression"
94 bool "Single threaded compression"
97 Traditionally Squashfs has used single-threaded decompression.
/linux/drivers/net/wireless/mediatek/mt76/
H A Ddebugfs.c36 if (dev->napi_dev->threaded != val) in mt76_napi_threaded_set()
47 *val = dev->napi_dev->threaded; in mt76_napi_threaded_get()
/linux/scripts/
H A Dxz_wrap.sh151 # Use single-threaded mode because it compresses a little better
156 # needs less than 1400 MiB of RAM in single-threaded mode.

12345678910>>...14