Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Periodic tick

Proto:static void tick_periodic(int cpu)

Type:void

Parameter:

TypeParameterName
intcpu
85  If ick_do_timer_cpu is a timer core internal variable which holds the CPU NR* which is responsible for calling do_timer(), i == cpu Then
86  Lock out other writers and update the count.* Acts like a normal spin_lock/unlock.* Don't need preempt_disable() because that is in the spin_lock already.
89  Tick next event: keeps track of the tick time = Add two ktime_t variables. res = lhs + rhs: (Tick next event: keeps track of the tick time, tick_period)
91  Must hold jiffies_lock
92  write_sequnlock( & jiffies_lock)
93  pdate_wall_time - Uses the current clocksource to increment the wall time
96  Called 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.
97  profile_tick(CPU_PROFILING)
Caller
NameDescribe
tick_handle_periodicEvent handler for periodic ticks