什么是Linux的本地定时器中断? [英] What are Linux Local timer interrupts?

查看:122
本文介绍了什么是Linux的本地定时器中断?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一切都的称号。好单证的任何链接都欢迎。

All is in the title. Any links to good documentations are welcome.

推荐答案

本地定时器中断上中断使用一个特定的CPU,而不是提高可以被任何CPU处理中断的APIC实现了一个计时器。它在播威&放讨论; Cesati的深入理解Linux内核。一个片段:

The local timer interrupt is a timer implemented on the APIC that interrupts only a particular CPU instead of raising an interrupt that can be handled by any CPU. It's discussed in Bovet & Cesati's "Understanding the Linux Kernel". A snippet:

在最近的80x86微处理器本地APIC present(见
  一节中断和例外中的第4章)提供了另一种
  时间测量装置:CPU局部计时器

The local APIC present in recent 80x86 microprocessors (see the section "Interrupts and Exceptions" in Chapter 4) provides yet another time-measuring device: the CPU local timer.

该CPU局部计时器是类似于可编程间隔的装置
  计时器只是描述了可以发出一次性或周期性中断。
  有,但是,有几个不同点:

The CPU local timer is a device similar to the Programmable Interval Timer just described that can issue one-shot or periodic interrupts. There are, however, a few differences:


      
  • 的APIC的定时器计数器长度是32位,而PIT的定时计数器为16位长;因此,本地计时器可以被编程
      发出在很低的频率中断(计数器存储
      在发出中断前必须经过蜱)的数量。

  •   
  • 的本地APIC定时器发送一个中断给它的处理器,而PIT引发全局中断,其可以通过任何被处理
      CPU中的系统。

  •   
  • 的APIC的计时器是基于总线时钟信号(或APIC总线信号,在旧机器)。它可以以这样的方式进行编程
      减少定时计数器每隔1,2,4,8,16,32,64,或128总线
      时钟信号。相反,PIT,这使得利用它自己的时钟的
      的信号,能够以更灵活的方式进行编程。

  •   

这篇关于什么是Linux的本地定时器中断?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆