Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\tiny.c Create Date:2022-07-28 10:29:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check 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.

Proto:void rcu_sched_clock_irq(int user)

Type:void

Parameter:

TypeParameterName
intuser
68  If user Then
69  Note a quiescent state for PREEMPT=n. Because we do not need to know* how many quiescent states passed, just if there was at least one since* the start of the grace period, this just sets a flag. The caller must* have disabled preemption.
70  Else if ->next pointer of last "done" CB. != ->next pointer of last CB. Then
71  set_tsk_need_resched(current process)
72  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
Caller
NameDescribe
update_process_timesCalled from the timer interrupt handler to charge one tick to the current* process. user_tick is 1 if the tick is user time, 0 for system.