Linux 内核时钟之oneshot编程
来源:互联网 发布:更改淘宝店铺主营类目 编辑:程序博客网 时间:2024/04/27 16:18
/** * tick_program_event */int tick_program_event(ktime_t expires, int force){ struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev);
if (unlikely(expires.tv64 == KTIME_MAX)) { /* * We don't need the clock event device any more, stop it. */ clockevents_switch_state(dev, CLOCK_EVT_STATE_ONESHOT_STOPPED); return 0; }
if (unlikely(clockevent_state_oneshot_stopped(dev))) { /* * We need the clock event again, configure it in ONESHOT mode * before using it. */ clockevents_switch_state(dev, CLOCK_EVT_STATE_ONESHOT); }
return clockevents_program_event(dev, expires, force);}
下面这些函数会对timer重新编程:
hrtimer_force_reprogram
hrtimer_interrupt
__tick_broadcast_oneshot_control
tick_nohz_restart
tick_nohz_stop_sched_tick
tick_nohz_handler
0 0
- Linux 内核时钟之oneshot编程
- Linux 内核时钟之oneshot建立
- linux驱动编程--内核时钟浅析
- Linux 内核时钟之进程时间更新
- Linux 内核时钟之经典timer处理
- Linux 内核时钟之触发local timer
- Linux 内核时钟之高精度处理
- Linux 内核时钟之timer初始化
- Linux 内核时钟架构之时钟源描述
- Linux 内核时钟架构之时钟源设备注册
- Linux 内核时钟架构之时钟源设备SR
- Linux 内核时钟架构之时钟源SYS 接口
- Linux 内核时钟架构之时钟源模块对外接口
- Linux 内核时钟架构之时钟源读取计数
- Linux 内核时钟架构之时钟设备描述符
- Linux 内核时钟架构之时钟事件设备注册
- Linux 内核时钟架构之时钟事件设备SYS接口
- Linux 内核时钟架构之时钟事件设备与tick_device
- Android根据Json直接生成JavaBean
- JAVA文件
- sqoop1,将sqlserver导入hbase
- RocketMQ 基本使用
- maven聚合工程的创建和聚合工程的打包
- Linux 内核时钟之oneshot编程
- iOS 链式编程
- 【C语言】编程规范——头文件
- angular 指令的问题
- maven_项目的依赖、聚合、继承
- mac在命令行使用mysql
- oracle-goldgate
- C#中Virtual与override分别有什么用途
- Maven聚合与继承