/*
* 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)
{
struct task_struct *p = current;
/* Note: this timer irq context must be accounted for as well. */
account_process_tick(p, user_tick);
run_local_timers();
rcu_check_callbacks(user_tick);
#ifdef CONFIG_IRQ_WORK
if (in_irq())
irq_work_tick();
#endif
scheduler_tick();
run_posix_cpu_timers(p);
}
Linux 内核时钟之进程时间更新
原创sunlei0625 ©著作权
©著作权归作者所有:来自51CTO博客作者sunlei0625的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
linux网络之守护进程
linux关于tcp套接字通信,以及将服务端守护进程化。
服务器 子进程 守护进程 TCP套接字通信 线程池 -
Linux内核之进程3:进程调度
1. 吞吐率和响应吞吐:单位时间内做的有用功;响应:低延迟。吞吐追求的整个系统CPU做有用功,响应追求的是某个特定
进程调度 CFS FIFO策略 优先级 内核态 -
Linux(内核剖析):36---时间管理之(硬时钟和定时器、时钟处理中断程序、实际时间)
待续
Linux内核剖析 硬时钟和定时器 时钟中断处理程序 实际时间 JAVA