Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\preempt.h Create Date:2022-07-28 05:35:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:We fold the NEED_RESCHED bit into the preempt count such that* preempt_enable() can decrement and test for needing to reschedule with a* single instruction.* We invert the actual bit, so that when the decrement hits 0 we know we both

Proto:static __always_inline void set_preempt_need_resched(void)

Type:void

Parameter:Nothing

60  raw_cpu_and_4(__preempt_count, ~We use the MSB mostly because its available )
Caller
NameDescribe
resched_currsched_curr - mark rq's current task 'to be rescheduled now'.* On UP this means the setting of the need_resched flag, on SMP it* might also involve a cross-CPU call to trigger the scheduler on* the target CPU.
rcu_sched_clock_irqThis function is invoked from each scheduling-clock interrupt,* and checks to see if this CPU is in a non-context-switch quiescent* state, for example, user mode or idle loop. It also schedules RCU* core processing
rcu_corePerform RCU core processing work for the current CPU.
rcu_sched_clock_irqCheck to see if the scheduling-clock interrupt came from an extended* quiescent state, and, if so, tell RCU about it. This function must* be called from hardirq context. It is normally called from the* scheduling-clock interrupt.