Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\tick-sched.c Create Date:2022-07-28 10:52:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check, if a change happened, which makes oneshot possible.* Called cyclic from the hrtimer softirq (driven by the timer* softirq) allow_nohz signals, that we can switch into low-res nohz* mode, because high resolution timers are disabled (either compile

Proto:int tick_check_oneshot_change(int allow_nohz)

Type:int

Parameter:

TypeParameterName
intallow_nohz
1413  ts = this_cpu_ptr( & Per-CPU nohz control structure)
1415  If Not st_and_clear_bit - Clear a bit and return its old value*@nr: Bit to clear*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). Then Return 0
1418  If nohz_mode != NOHZ_MODE_INACTIVE Then Return 0
1421  If Not mekeeping_valid_for_hres - Check if timekeeping is suitable for hres || Not k_is_oneshot_available - check for a oneshot capable event device Then Return 0
1424  If Not allow_nohz Then Return 1
1427  tick_nohz_switch_to_nohz()
1428  Return 0