Timer
  • Time
  • linux/kernel/time/timekeeping.c
struct timespec {       
    time_t tv_sec;  /* seconds */ 
    long  tv_nsec;  /* nanoseconds */ 
};
  • static struct timespec xtime attribute ((aligned (16)))
    • the current time
  • System Timer
    • Programmable Interval Timer(PIT)
    • local APIC timer
    • Time Stamp Counter (TSC)
    • High Precision Event Timer(HPET)
    • Linux 时钟处理机制
  • Dynamic Timer/Kernel Timer
    • Kernel timers are run as the result of a "software interrupt."
    • A timer should run on the same CPU that registered it.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License