函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\tick-common.c Create Date:2022-07-27 11:50:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:时钟中断处理

函数原型:static void tick_periodic(int cpu)

返回类型:void

参数:

类型参数名称
intcpu
85  如果ick_do_timer_cpu is a timer core internal variable which holds the CPU NR* which is responsible for calling do_timer(), i恒等于cpu
86  当前CPU负责更新时间
89  Tick next event: keeps track of the tick time等于计算下一次触发时间(Tick next event: keeps track of the tick time, tick_period)
91  更新 jiffies计数
92  write_sequnlock( & jiffies_lock)
93  更新时钟
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)
调用者
名称描述
tick_handle_periodic时钟中断函数