Skip to content
  • Russell King's avatar
    ARM: riscpc: replace gettimeoffset() with clocksource · a44c1d70
    Russell King authored
    
    
    Replace the old gettimeoffset() interface (which became buggy in
    several ways) with a clocksource that atomically reads the count
    and status from the timer, and corrects the count as appropriate
    ensuring proper resolution of time without time warping backwards.
    
    We keep the original periodic timer non-clock event implementation
    to provide the kernel with a regular source of interrupts, which
    are required to keep the clocksource properly updated.
    
    Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
    a44c1d70