全部博文(32)
分类: LINUX
2010-07-14 11:49:50
cat /proc/timer_list回车
Tick Device: mode: 1
Clock Event Device: pit //全局中断器pit,就是8253/8254
max_delta_ns: 27461866
min_delta_ns: 12571
mult: 5124677
shift: 32
mode: 1
next_event: 9223372036854775807 nsecs
set_next_event: pit_next_event
set_mode: init_pit_timer
event_handler: tick_handle_oneshot_broadcast//中断处理函数
/*如果cpu没有本地的时钟中断器,那么,这里的处理函数是tick_handle_periodic( )*/
tick_broadcast_mask: 00000000
tick_broadcast_oneshot_mask: 00000000
Tick Device: mode: 1
Clock Event Device: lapic //第一个cpu的中断器,本地中断器
max_delta_ns: 2033603200
min_delta_ns: 3636
mult: 17716727
shift: 32
mode: 3
next_event: 562284000000 nsecs
set_next_event: lapic_next_event
set_mode: lapic_timer_setup
event_handler: hrtimer_interrupt//中断处理函数
Tick Device: mode: 1
Clock Event Device: lapic //第二个本地中断器
max_delta_ns: 2033603200
min_delta_ns: 3636
mult: 17716727
shift: 32
mode: 3
next_event: 562285015625 nsecs
set_next_event: lapic_next_event
set_mode: lapic_timer_setup
event_handler: hrtimer_interrupt//中断处理函数
在平时,是两个cpu的本地中断在起时钟中断的作用,但是,当cpu进入深度节能状态的时候,两个cpu的本地时钟中断停止,全局的pit开始接替两个本地的时钟的工作,起着时钟中断的作用。