您的位置:首页 > 运维架构 > 网站架构

Linux 内核时钟架构之时钟源设备SR

2017-03-24 16:25 309 查看
 

 

 

/**
 * clocksource_suspend - suspend the clocksource(s)
 */
void clocksource_suspend(void)
{
 struct clocksource *cs;
 list_for_each_entry_reverse(cs, &clocksource_list, list)
  if (cs->suspend)
   cs->suspend(cs);
}
/**
 * clocksource_resume - resume the clocksource(s)
 */
void clocksource_resume(void)
{
 struct clocksource *cs;
 list_for_each_entry(cs, &clocksource_list, list)
  if (cs->resume)
   cs->resume(cs);
 clocksource_resume_watchdog();
}

函数timekeeping_resume()和timekeeping_suspend()调用。

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: