Home
last modified time | relevance | path

Searched refs:threaded (Results 1 – 25 of 105) sorted by relevance

12345

/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()
296 for (i = 0; i < bpmp->threaded.count; i++) { in tegra186_bpmp_setup_channels()
319 for (i = 0; i < bpmp->threaded.count; i++) in tegra186_bpmp_reset_channels()
H A Dbpmp-tegra210.c193 for (i = 0; i < bpmp->threaded.count; i++) { in tegra210_bpmp_init()
/linux/tools/perf/bench/
H A Dsched-pipe.c48 static bool threaded; variable
90 OPT_BOOLEAN('T', "threaded", &threaded, "Specify threads/process based task setup"),
120 if (threaded) in enter_cgroup()
129 if (threaded) in enter_cgroup()
258 if (threaded) { in bench_sched_pipe()
299 loops, threaded ? "threads" : "processes"); in bench_sched_pipe()
/linux/Documentation/core-api/real-time/
H A Dtheory.rst15 the use of threaded interrupts. As a result, the kernel becomes fully
88 under scheduler control, PREEMPT_RT enforces threaded interrupt handlers.
92 Its sole responsibility is to wake the associated threaded handler. The second
93 stage, the threaded handler, is the function passed to request_irq() as the
96 From waking the interrupt thread until threaded handling is completed, the
101 By default, the threaded handler executes with the SCHED_FIFO scheduling policy
105 If the threaded interrupt handler raises any soft interrupts during its
106 execution, those soft interrupt routines are invoked after the threaded handler
113 By using sleeping locks and forced-threaded interrupts, PREEMPT_RT
H A Ddifferences.rst12 With forced-threaded interrupts and sleeping spin locks, code paths that
29 However, on a PREEMPT_RT system, interrupts are forced-threaded and no longer
43 the use of threaded interrupts. Other parts of the kernel also shift their
44 execution into threaded context by different mechanisms. The goal is to keep
49 threaded, preemptible execution.
54 All interrupts are forced-threaded in a PREEMPT_RT system. The exceptions are
58 The IRQF_ONESHOT flag is used together with threaded interrupts, meaning those
59 registered using request_threaded_irq() and providing only a threaded handler.
60 Its purpose is to keep the interrupt line masked until the threaded handler has
64 handler does not acquire any sleeping locks, as it will not be threaded. The
[all …]
/linux/tools/testing/selftests/drivers/net/
H A Dnapi_threaded.py26 def _set_threaded_state(cfg, threaded) -> None: argument
28 fp.write(str(threaded).encode('utf-8'))
36 threaded = cmd(f"cat /sys/class/net/{cfg.ifname}/threaded").stdout
37 defer(_set_threaded_state, cfg, threaded)
/linux/net/core/
H A Ddev.h337 return n->config->threaded; in napi_get_threaded_config()
338 return dev->threaded; in napi_get_threaded_config()
342 enum netdev_napi_threaded threaded);
345 enum netdev_napi_threaded threaded);
H A Ddev_api.c372 enum netdev_napi_threaded threaded) in dev_set_threaded() argument
377 ret = netif_set_threaded(dev, threaded); in dev_set_threaded()
H A Dnetdev-genl.c329 u8 threaded = 0; in netdev_nl_napi_set_config() local
335 threaded = nla_get_uint(info->attrs[NETDEV_A_NAPI_THREADED]); in netdev_nl_napi_set_config()
336 ret = napi_set_threaded(napi, threaded); in netdev_nl_napi_set_config()
/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/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/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
/linux/Documentation/usb/
H A Ddwc3.rst34 - threaded handler of the device
45 - threaded handler of the EP-interrupt
/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/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
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/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).
267 packets (:ref:`threaded busy polling<threaded_busy_poll>`) using the NAPI
436 Threaded NAPI busy polling extends threaded NAPI and adds support to do
447 --json='{"id": 66, "threaded": "busy-poll"}'
455 Once threaded busy polling is enabled for a NAPI, PID of the kthread can be
475 'threaded': 'busy-poll'}
484 Each threaded NAPI instance will spawn a separate thread
493 Threaded NAPI is controlled by writing 0/1 to the ``threaded`` file in
501 $ ynl --family netdev --do napi-set --json='{"id": 66, "threaded": 1}'
/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/Documentation/admin-guide/
H A Dcgroup-v2.rst323 Controllers which support thread mode are called threaded controllers.
326 Marking a cgroup threaded makes it join the resource domain of its
327 parent as a threaded cgroup. The parent may be another threaded
329 of a threaded subtree, that is, the nearest ancestor which is not
330 threaded, is called threaded domain or thread root interchangeably and
333 Inside a threaded subtree, threads of a process can be put in
335 constraint - threaded controllers can be enabled on non-leaf cgroups
338 As the threaded domain cgroup hosts all the domain resource
341 can't have populated child cgroups which aren't threaded. Because the
343 serve both as a threaded domain and a parent to domain cgroups.
[all …]
/linux/tools/perf/Documentation/
H A Dcpu-and-latency-overheads.txt4 For a single-threaded program, or a program running on a single-core machine,
5 these notions are the same. However, for a multi-threaded/multi-process program
/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/include/soc/tegra/
H A Dbpmp.h90 } threaded; member
/linux/Documentation/devicetree/bindings/dma/
H A Dimg-mdc-dma.txt1 * IMG Multi-threaded DMA Controller (MDC)
/linux/drivers/gpio/
H A Dgpio-siox.c250 girq->threaded = true; in gpio_siox_probe()
/linux/Documentation/translations/zh_CN/networking/
H A Dnapi.rst358 线程化 NAPI 是通过向网络设备的 sysfs 目录中的 ``threaded`` 文件写入 0 或 1 来控制的。

12345