/linux-6.8/arch/csky/ |
D | Kconfig | 13 select ARCH_INLINE_READ_LOCK if !PREEMPTION 14 select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION 15 select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION 16 select ARCH_INLINE_READ_LOCK_IRQSAVE if !PREEMPTION 17 select ARCH_INLINE_READ_UNLOCK if !PREEMPTION 18 select ARCH_INLINE_READ_UNLOCK_BH if !PREEMPTION 19 select ARCH_INLINE_READ_UNLOCK_IRQ if !PREEMPTION 20 select ARCH_INLINE_READ_UNLOCK_IRQRESTORE if !PREEMPTION 21 select ARCH_INLINE_WRITE_LOCK if !PREEMPTION 22 select ARCH_INLINE_WRITE_LOCK_BH if !PREEMPTION [all …]
|
/linux-6.8/Documentation/locking/ |
D | preempt-locking.rst | 35 protect these situations by disabling preemption around them. 37 You can also use put_cpu() and get_cpu(), which will disable preemption. 44 Under preemption, the state of the CPU must be protected. This is arch- 47 section that must occur while preemption is disabled. Think what would happen 50 upon preemption, the FPU registers will be sold to the lowest bidder. Thus, 51 preemption must be disabled around such regions. 54 kernel_fpu_begin and kernel_fpu_end will disable and enable preemption. 72 Data protection under preemption is achieved by disabling preemption for the 84 n-times in a code path, and preemption will not be reenabled until the n-th 86 preemption is not enabled. [all …]
|
D | locktypes.rst | 59 preemption and interrupt disabling primitives. Contrary to other locking 60 mechanisms, disabling preemption or interrupts are pure CPU local 76 Spinning locks implicitly disable preemption and the lock / unlock functions 103 PI has limitations on non-PREEMPT_RT kernels due to preemption and 106 PI clearly cannot preempt preemption-disabled or interrupt-disabled 162 by disabling preemption or interrupts. 164 On non-PREEMPT_RT kernels local_lock operations map to the preemption and 200 local_lock should be used in situations where disabling preemption or 204 local_lock is not suitable to protect against preemption or interrupts on a 217 preemption or interrupts is required, for example, to safely access [all …]
|
D | hwspinlock.rst | 95 Upon a successful return from this function, preemption is disabled so 111 Upon a successful return from this function, preemption and the local 127 Upon a successful return from this function, preemption is disabled, 178 Upon a successful return from this function, preemption is disabled so 195 Upon a successful return from this function, preemption and the local 211 Upon a successful return from this function, preemption is disabled, 268 Upon a successful return from this function, preemption and local 280 Upon a successful return from this function, preemption is reenabled,
|
D | seqlock.rst | 47 preemption, preemption must be explicitly disabled before entering the 72 /* Serialized context with disabled preemption */ 107 For lock types which do not implicitly disable preemption, preemption
|
/linux-6.8/kernel/ |
D | Kconfig.preempt | 11 select PREEMPTION 15 prompt "Preemption Model" 19 bool "No Forced Preemption (Server)" 22 This is the traditional Linux preemption model, geared towards 33 bool "Voluntary Kernel Preemption (Desktop)" 38 "explicit preemption points" to the kernel code. These new 39 preemption points have been selected to reduce the maximum 61 otherwise not be about to reach a natural preemption point. 73 select PREEMPTION 92 config PREEMPTION config [all …]
|
D | Kconfig.locks | 104 # - DEBUG_SPINLOCK=n and PREEMPTION=n 142 depends on !PREEMPTION || ARCH_INLINE_SPIN_UNLOCK_IRQ 171 depends on !PREEMPTION || ARCH_INLINE_READ_UNLOCK 179 depends on !PREEMPTION || ARCH_INLINE_READ_UNLOCK_IRQ 208 depends on !PREEMPTION || ARCH_INLINE_WRITE_UNLOCK 216 depends on !PREEMPTION || ARCH_INLINE_WRITE_UNLOCK_IRQ
|
/linux-6.8/drivers/gpu/drm/msm/adreno/ |
D | a5xx_gpu.h | 56 * In order to do lockless preemption we use a simple state machine to progress 59 * PREEMPT_NONE - no preemption in progress. Next state START. 60 * PREEMPT_START - The trigger is evaulating if preemption is possible. Next 64 * PREEMPT_TRIGGERED: A preemption has been executed on the hardware. Next 66 * PREEMPT_FAULTED: A preemption timed out (never completed). This will trigger 68 * PREEMPT_PENDING: Preemption complete interrupt fired - the callback is 83 * CPU to store the state for preemption. The record itself is much larger 86 * There is a preemption record assigned per ringbuffer. When the CPU triggers a 87 * preemption, it fills out the record with the useful information (wptr, ring 89 * the preemption. When a ring is switched out, the CP will save the ringbuffer [all …]
|
D | a5xx_preempt.c | 9 * Try to transition the preemption state from old to new. Return 22 * Force the preemption state to the specified state. This is used in cases 30 * preemption or in the interrupt handler so barriers are needed in set_preempt_state() 85 DRM_DEV_ERROR(dev->dev, "%s: preemption timed out\n", gpu->name); in a5xx_preempt_timer() 89 /* Try to trigger a preemption switch */ 101 * Try to start preemption by moving from NONE to START. If in a5xx_preempt_trigger() 102 * unsuccessful, a preemption is already in flight in a5xx_preempt_trigger() 116 * Its possible that while a preemption request is in progress in a5xx_preempt_trigger() 138 /* Set the address of the incoming preemption record */ in a5xx_preempt_trigger() 144 /* Start a timer to catch a stuck preemption */ in a5xx_preempt_trigger() [all …]
|
/linux-6.8/arch/loongarch/ |
D | Kconfig | 24 select ARCH_INLINE_READ_LOCK if !PREEMPTION 25 select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION 26 select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION 27 select ARCH_INLINE_READ_LOCK_IRQSAVE if !PREEMPTION 28 select ARCH_INLINE_READ_UNLOCK if !PREEMPTION 29 select ARCH_INLINE_READ_UNLOCK_BH if !PREEMPTION 30 select ARCH_INLINE_READ_UNLOCK_IRQ if !PREEMPTION 31 select ARCH_INLINE_READ_UNLOCK_IRQRESTORE if !PREEMPTION 32 select ARCH_INLINE_WRITE_LOCK if !PREEMPTION 33 select ARCH_INLINE_WRITE_LOCK_BH if !PREEMPTION [all …]
|
/linux-6.8/Documentation/core-api/ |
D | entry.rst | 10 * Preemption counter 167 irq_enter_rcu() updates the preemption count which makes in_hardirq() 172 irq_exit_rcu() handles interrupt time accounting, undoes the preemption 175 In theory, the preemption count could be updated in irqentry_enter(). In 176 practice, deferring this update to irq_enter_rcu() allows the preemption-count 180 preemption count has not yet been updated with the HARDIRQ_OFFSET state. 182 Note that irq_exit_rcu() must remove HARDIRQ_OFFSET from the preemption count 185 also requires that HARDIRQ_OFFSET has been removed from the preemption count. 215 * Preemption counter 223 Note that the update of the preemption counter has to be the first [all …]
|
D | local_ops.rst | 42 making sure that we modify it from within a preemption safe context. It is 70 * Preemption (or interrupts) must be disabled when using local ops in 76 preemption already disabled. I suggest, however, to explicitly 77 disable preemption anyway to make sure it will still work correctly on 104 local atomic operations: it makes sure that preemption is disabled around write 110 If you are already in a preemption-safe context, you can use 161 * preemptible context (it disables preemption) :
|
D | this_cpu_ops.rst | 20 necessary to disable preemption or interrupts to ensure that the 44 The following this_cpu() operations with implied preemption protection 46 preemption and interrupts:: 110 reserved for a specific processor. Without disabling preemption in the 142 preemption has been disabled. The pointer is then used to 143 access local per cpu data in a critical section. When preemption 230 preemption. If a per cpu variable is not used in an interrupt context
|
/linux-6.8/include/linux/ |
D | preempt.h | 7 * preempt_count (used for kernel preemption, interrupt count, etc.) 15 * We put the hardirq and softirq counter into the preemption 18 * - bits 0-7 are the preemption count (max preemption depth: 256) 60 * Disable preemption until the scheduler is running -- use an unconditional 160 /* Locks on RT do not disable preemption */ 169 * Which need to disable both preemption (CONFIG_PREEMPT_COUNT) and 281 * Even if we don't have any preemption, we need preempt disable/enable 301 * Modules have no business playing preemption tricks. 344 * preempt_notifier - key for installing preemption notifiers 439 * preempt_disable_nested - Disable preemption inside a normally preempt disabled section [all …]
|
D | hwspinlock.h | 174 * Upon a successful return from this function, preemption and local 195 * Upon a successful return from this function, preemption and local 250 * Upon a successful return from this function, preemption is disabled, 273 * Upon a successful return from this function, preemption and local interrupts 296 * Upon a successful return from this function, preemption and local interrupts 364 * Upon a successful return from this function, preemption is disabled 385 * This function will unlock a specific hwspinlock, enable preemption and 402 * This function will unlock a specific hwspinlock, enable preemption and 448 * This function will unlock a specific hwspinlock and enable preemption
|
/linux-6.8/drivers/gpu/drm/xe/ |
D | xe_exec_queue_types.h | 133 /** @preempt_timeout_us: preemption timeout in micro-seconds */ 141 /** @pfence: preemption fence */ 143 /** @context: preemption fence context */ 145 /** @seqno: preemption fence seqno */ 149 /** @lock: preemption fences lock */ 179 /** @set_preempt_timeout: Set preemption timeout for exec queue */
|
D | xe_pcode.c | 141 * @timeout_base_ms: timeout for polling with preemption enabled 146 * applying @reply_mask. Polling is first attempted with preemption enabled 148 * preemption disabled. 170 * the poll with preemption disabled to maximize the number of in xe_pcode_request() 177 "PCODE timeout, retrying with preemption disabled\n"); in xe_pcode_request()
|
/linux-6.8/tools/testing/selftests/kvm/x86_64/ |
D | vmx_preemption_timer_test.c | 3 * VMX-preemption timer test 61 * Now wait for the preemption timer to fire and in l2_guest_code() 85 * Check for Preemption timer support in l1_guest_code() 128 * Ensure the exit from L2 is due to preemption timer expiry in l1_guest_code() 204 * From L1's perspective verify Preemption timer hasn't in main() 206 * From L2's perspective verify Preemption timer hasn't in main()
|
/linux-6.8/Documentation/RCU/ |
D | NMI-RCU.rst | 45 The do_nmi() function processes each NMI. It first disables preemption 50 preemption is restored. 95 CPUs complete any preemption-disabled segments of code that they were 97 Since NMI handlers disable preemption, synchronize_rcu() is guaranteed
|
/linux-6.8/drivers/gpu/drm/i915/ |
D | intel_pcode.c | 147 * @timeout_base_ms: timeout for polling with preemption enabled 152 * applying @reply_mask. Polling is first attempted with preemption enabled 154 * preemption disabled. 188 * the poll with preemption disabled to maximize the number of in skl_pcode_request() 195 "PCODE timeout, retrying with preemption disabled\n"); in skl_pcode_request()
|
/linux-6.8/kernel/rcu/ |
D | Kconfig | 21 default y if PREEMPTION 34 default y if !PREEMPTION && !SMP 84 that uses only voluntary context switch (not preemption!), 100 that uses only context switch (including preemption) and 252 the "x" is "p" for RCU-preempt (PREEMPTION kernels) and "s" for 253 RCU-sched (!PREEMPTION kernels). Nothing prevents this kthread
|
/linux-6.8/arch/x86/include/asm/fpu/ |
D | api.h | 19 * disables preemption so be careful if you intend to use it for long periods 58 * local_bh_disable() protects against both preemption and soft interrupts 63 * preemptible. Disabling preemption is the right choice here as bottom 67 * Disabling preemption also serializes against kernel_fpu_begin().
|
/linux-6.8/arch/arm64/ |
D | Kconfig | 55 select ARCH_INLINE_READ_LOCK if !PREEMPTION 56 select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION 57 select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION 58 select ARCH_INLINE_READ_LOCK_IRQSAVE if !PREEMPTION 59 select ARCH_INLINE_READ_UNLOCK if !PREEMPTION 60 select ARCH_INLINE_READ_UNLOCK_BH if !PREEMPTION 61 select ARCH_INLINE_READ_UNLOCK_IRQ if !PREEMPTION 62 select ARCH_INLINE_READ_UNLOCK_IRQRESTORE if !PREEMPTION 63 select ARCH_INLINE_WRITE_LOCK if !PREEMPTION 64 select ARCH_INLINE_WRITE_LOCK_BH if !PREEMPTION [all …]
|
/linux-6.8/fs/ |
D | stack.c | 18 * preemption (see include/linux/fs.h): we need nothing extra for in fsstack_copy_inode_size() 26 * i_blocks in sync despite SMP or PREEMPTION - though stat's in fsstack_copy_inode_size() 48 * i_blocks in sync despite SMP or PREEMPTION: use i_lock for that case in fsstack_copy_inode_size()
|
/linux-6.8/arch/arm64/include/asm/ |
D | percpu.h | 26 * Non-VHE hyp code runs with preemption disabled. No need to hazard in __hyp_my_cpu_offset() 140 * re-enabling preemption for preemptible kernels, but doing that in a way 144 * Not to mention it'll break the actual preemption model for missing a 145 * preemption point when TIF_NEED_RESCHED gets set while preemption is
|