Home
last modified time | relevance | path

Searched refs:preempt (Results 1 – 25 of 103) sorted by relevance

12345

/linux-6.6.21/arch/arm64/include/asm/
Dpreempt.h13 return READ_ONCE(current_thread_info()->preempt.count); in preempt_count()
19 WRITE_ONCE(current_thread_info()->preempt.count, pc); in preempt_count_set()
32 current_thread_info()->preempt.need_resched = 0; in set_preempt_need_resched()
37 current_thread_info()->preempt.need_resched = 1; in clear_preempt_need_resched()
42 return !current_thread_info()->preempt.need_resched; in test_preempt_need_resched()
47 u32 pc = READ_ONCE(current_thread_info()->preempt.count); in __preempt_count_add()
49 WRITE_ONCE(current_thread_info()->preempt.count, pc); in __preempt_count_add()
54 u32 pc = READ_ONCE(current_thread_info()->preempt.count); in __preempt_count_sub()
56 WRITE_ONCE(current_thread_info()->preempt.count, pc); in __preempt_count_sub()
65 WRITE_ONCE(ti->preempt.count, --pc); in __preempt_count_dec_and_test()
/linux-6.6.21/init/
DMakefile27 preempt-flag-$(CONFIG_PREEMPT_BUILD) := PREEMPT
28 preempt-flag-$(CONFIG_PREEMPT_DYNAMIC) := PREEMPT_DYNAMIC
29 preempt-flag-$(CONFIG_PREEMPT_RT) := PREEMPT_RT
36 …utsver=$$(echo '$(pound)'"$(build-version)" $(smp-flag-y) $(preempt-flag-y) "$(build-timestamp)" |…
/linux-6.6.21/tools/testing/selftests/ftrace/test.d/preemptirq/
Dirqsoff_tracer.tc36 modprobe $MOD test_mode=preempt delay=500000 || fail
38 modprobe $MOD test_mode=preempt delay=500000 || fail
40 modprobe $MOD test_mode=preempt delay=500000 || fail
/linux-6.6.21/drivers/gpu/drm/msm/adreno/
Da5xx_preempt.c135 a5xx_gpu->preempt[ring->id]->wptr = get_wptr(ring); in a5xx_preempt_trigger()
207 a5xx_gpu->preempt[i]->wptr = 0; in a5xx_preempt_hw_init()
208 a5xx_gpu->preempt[i]->rptr = 0; in a5xx_preempt_hw_init()
209 a5xx_gpu->preempt[i]->rbase = gpu->rb[i]->iova; in a5xx_preempt_hw_init()
210 a5xx_gpu->preempt[i]->rptr_addr = shadowptr(a5xx_gpu, gpu->rb[i]); in a5xx_preempt_hw_init()
252 a5xx_gpu->preempt[ring->id] = ptr; in preempt_init_ring()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dgk110.c41 cgrp->func->preempt(cgrp); in gk110_chan_preempt()
57 .preempt = gk110_chan_preempt,
68 .preempt = gk110_cgrp_preempt,
Dchan.h52 void (*preempt)(struct nvkm_chan *); member
63 void nvkm_chan_error(struct nvkm_chan *, bool preempt);
65 void nvkm_chan_remove(struct nvkm_chan *, bool preempt);
Dchan.c142 chan->func->preempt(chan); in nvkm_chan_preempt_locked()
154 if (!chan->func->preempt) in nvkm_chan_preempt()
183 nvkm_chan_remove(struct nvkm_chan *chan, bool preempt) in nvkm_chan_remove() argument
188 if (preempt && chan->func->preempt) in nvkm_chan_remove()
228 nvkm_chan_error(struct nvkm_chan *chan, bool preempt) in nvkm_chan_error() argument
236 if (preempt) in nvkm_chan_error()
237 chan->func->preempt(chan); in nvkm_chan_error()
Dtu102.c57 .preempt = gk110_chan_preempt,
93 .preempt = gv100_runl_preempt,
Drunl.c87 if (runl->func->preempt) { in nvkm_runl_rc()
137 if (runl->func->preempt) in nvkm_runl_rc_runl()
138 runl->func->preempt(runl); in nvkm_runl_rc_runl()
Dga100.c104 .preempt = gk110_chan_preempt,
118 .preempt = ga100_cgrp_preempt,
401 runl->func->preempt(runl); in ga100_runl_init()
434 .preempt = ga100_runl_preempt,
Dgv100.c87 .preempt = gk110_chan_preempt,
215 .preempt = gv100_runl_preempt,
/linux-6.6.21/Documentation/locking/
Dpreempt-locking.rst53 Note, some FPU functions are already explicitly preempt safe. For example,
77 preempt_enable() decrement the preempt counter
78 preempt_disable() increment the preempt counter
79 preempt_enable_no_resched() decrement, but do not immediately preempt
81 preempt_count() return the preempt counter
85 call to preempt_enable. The preempt statements define to nothing if
94 a reschedule if the preempt count is 0. A simple printk() might trigger a
121 This code is not preempt-safe, but see how easily we can fix it by simply
Dindex.rst20 preempt-locking
/linux-6.6.21/include/linux/
Drcupdate.h167 # define rcu_tasks_classic_qs(t, preempt) \ argument
169 if (!(preempt) && READ_ONCE((t)->rcu_tasks_holdout)) \
175 # define rcu_tasks_classic_qs(t, preempt) do { } while (0) argument
204 #define rcu_tasks_qs(t, preempt) \ argument
206 rcu_tasks_classic_qs((t), (preempt)); \
220 #define rcu_tasks_classic_qs(t, preempt) do { } while (0) argument
221 #define rcu_tasks_qs(t, preempt) do { } while (0) argument
Drcutiny.h130 #define rcu_note_context_switch(preempt) \ argument
133 rcu_tasks_qs(current, (preempt)); \
Drcutree.h21 void rcu_note_context_switch(bool preempt);
/linux-6.6.21/samples/trace_events/
Dtrace_custom_sched.h27 TP_PROTO(bool preempt,
32 TP_ARGS(preempt, prev, next, prev_state),
/linux-6.6.21/Documentation/trace/rv/
Dmonitor_wip.rst39 do not trace (preempt count >= 1)
44 do not trace (preempt count >= 1)
/linux-6.6.21/include/trace/events/
Dsched.h190 static inline long __trace_sched_switch_state(bool preempt, in __trace_sched_switch_state() argument
204 if (preempt) in __trace_sched_switch_state()
224 TP_PROTO(bool preempt,
229 TP_ARGS(preempt, prev, next, prev_state),
245 __entry->prev_state = __trace_sched_switch_state(preempt, prev_state, prev);
/linux-6.6.21/Documentation/translations/zh_CN/locking/
Dindex.rst30 * preempt-locking
/linux-6.6.21/kernel/trace/rv/monitors/wwnr/
Dwwnr.c21 static void handle_switch(void *data, bool preempt, struct task_struct *p, in handle_switch() argument
/linux-6.6.21/Documentation/trace/
Dfprobetrace.rst115 # echo 't sched_switch preempt prev_pid=prev->pid next_pid=next->pid' >> dynamic_events
188 …0] d..3. 3912.083995: sched_switch: (__probestub_sched_switch+0x4/0x10) preempt=0 prev=0xffff8880…
190 …0] d..3. 3912.084184: sched_switch: (__probestub_sched_switch+0x4/0x10) preempt=0 prev=0xffffffff…
192 …0] d..3. 3912.084196: sched_switch: (__probestub_sched_switch+0x4/0x10) preempt=0 prev=0xffff8880…
194 …0] d..3. 3912.085191: sched_switch: (__probestub_sched_switch+0x4/0x10) preempt=0 prev=0xffffffff…
/linux-6.6.21/kernel/rcu/
Dtree_plugin.h312 void rcu_note_context_switch(bool preempt) in rcu_note_context_switch() argument
320 …WARN_ONCE(!preempt && rcu_preempt_depth() > 0, "Voluntary context switch within RCU read-side crit… in rcu_note_context_switch()
359 rcu_tasks_qs(current, preempt); in rcu_note_context_switch()
893 void rcu_note_context_switch(bool preempt) in rcu_note_context_switch() argument
904 rcu_tasks_qs(current, preempt); in rcu_note_context_switch()
/linux-6.6.21/drivers/parport/
Dshare.c707 if (!par_dev_cb->preempt || !par_dev_cb->wakeup) { in parport_register_dev_model()
748 par_dev->preempt = par_dev_cb->preempt; in parport_register_dev_model()
992 if (oldcad->preempt) { in parport_claim()
993 if (oldcad->preempt(oldcad->private)) in parport_claim()
/linux-6.6.21/arch/um/include/asm/
DKbuild23 generic-y += preempt.h

12345