Linux 05513606864 xlanchenustc edu cn Spring 2009 v
- Slides: 44
Linux内核源代码导读 中国科学技术大学计算机系 陈香兰(0551-3606864) xlanchen@ustc. edu. cn Spring 2009
v Linux本身只使用RTC获得时间和日期 Ø 阅读mach_get_cmos_time native_get_wallclock v 对应的设备文件为/dev/rtc get_wallclock Ø 可以通过设备文件对其编程 read_persistent_clock v 内核通过0 x 70和0 x 71两个端口访问RTC v 系统管理员可以通过执行时钟程序设置时钟 timekeeping_init、 timekeeping_resume、 timekeeping_suspend 9/25/2021 Linux内核源代码导读 6
v 在Linux 2. 6. 26中,rdtscll()和rdtscl()用来读取TSC 的值。 rdtscl: 32位 rdtscll: 64位 native_read_tsc 9/25/2021 Linux内核源代码导读 8
9/25/2021 Linux内核源代码导读 11
9/25/2021 Linux内核源代码导读 12
注册时钟源: clocksource_register clocksource_list 按rating排序 9/25/2021 Linux内核源代码导读 17
又如pit作为时钟源 init_pit_clocksource将会注册此时钟源 9/25/2021 Linux内核源代码导读 19
X 86中的时钟中断源及其初始化 start_kernel tick_init 滴答相关 初始化 init_timers 定时机制 相关 初始化 hrtimers_init 高精度定时器 相关 初始化 timekeeping_init time_initsched_clock_init Xtime相关 调度相关 初始化 hpet_time_init setup_pit_timer 注册pit_clockevent为 Clockevent设备 9/25/2021 Linux内核源代码导读 并设置global_clock_event 23
=&pit_clockevent 需要寻找event_handler什么时候赋值的 9/25/2021 Linux内核源代码导读 24
tick_init调用clockevents_register_notifier注册tick_notifier到 clockevents_chain上 tick_check_new_device tick_setup_periodic notifier_call_chain将会 遍历clockevents_chain __raw_notifier_call_chain tick_set_periodic_handler 设置event_handler = tick_handle_periodic raw_notifier_call_chain clockevents_do_notify tick_periodic clockevents_register_device do_timer 9/25/2021 update_process_times Linux内核源代码导读 25
9/25/2021 Linux内核源代码导读 26
9/25/2021 Linux内核源代码导读 27
9/25/2021 Linux内核源代码导读 28
9/25/2021 Linux内核源代码导读 29
9/25/2021 Linux内核源代码导读 36
动态定时器应用之delayed work 9/25/2021 Linux内核源代码导读 37
动态定时器应用之schedule_timeout 9/25/2021 Linux内核源代码导读 38
缺省为delay_loop 9/25/2021 Linux内核源代码导读 使用tsc时为delay_tsc 40
Thanks! The end.
- Linux linux security module m1 support
- Embedded linux vs desktop linux
- Fall season months
- Cast of spring, summer, fall, winter... and spring
- Edu.sharif.edu
- Iso 9004 2009
- Naeyc 2009
- Ssdt boc
- Cagatay ulusoy
- Discrepancy matrix
- Slide 6/21
- 2009
- Herci sherlock holmes
- Epidemia
- Decreto 1290 de 2009
- Radford 2009
- Iso 9004:2009
- Autodesk maya 2009
- Institutional calendar
- Psak 48
- 2009 pearson education inc
- Battle of yorktown webquest answer key
- Aladin 2009
- Nec 2009
- Decreto 2680 de 2009
- 9 months before january 26 2009
- 2009
- January 2006 chemistry regents answers
- Aeis report 2009
- Mhs dress code
- Pers/2009/06
- Eastbourne coroners office
- Domino's pizza crisis 2009
- Servicio social uabc 2009
- 2009 delmar cengage learning
- Iso 14937:2009
- Karakteristik kurikulum paud 2009
- 2009 delmar cengage learning
- Calendario pirelli 2009
- Credito scolastico 5 anno
- 2009 pearson education inc
- Msexchange mid-tier storage 2009
- Rosa catania 2009
- Portaria 2048
- Hy/2009/19