函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:void update_process_times(int user_tick)

返回类型:void

参数:

类型参数名称
intuser_tick
1721  p等于当前进程
1724  更新当前进程的内核态和用户态占用率
1725  检查有没有定时器到期,有就运行到期定时器的处理
1726  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.
1731  This function gets called by the timer code, with HZ frequency.* We call it with interrupts disabled.
1732  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_POSIX_TIMERS)则run_posix_cpu_timers()
调用者
名称描述
tick_periodic时钟中断处理