Skip to content
  • Igor V. Kovalenko's avatar
    sparc64: reimplement tick timers v4 · 8f4efc55
    Igor V. Kovalenko authored
    
    
    sparc64 timer has tick counter which can be set and read,
    and tick compare value used as deadline to fire timer interrupt.
    The timer is not used as periodic timer, instead deadline
    is set each time new timer interrupt is needed.
    
    v3 -> v4:
    - coding style
    
    v2 -> v3:
    - added missing timer debug output macro
    - CPUTimer struct and typedef moved to cpu.h
    - change CPU_SAVE_VERSION to 6, older save formats not supported
    
    v1 -> v2:
    - new conversion helpers cpu_to_timer_ticks and timer_to_cpu_ticks
    - save offset from clock source to implement cpu_tick_set_count
    - renamed struct sun4u_timer to CPUTimer
    - load and save cpu timers
    
    v0 -> v1:
    - coding style
    
    Signed-off-by: default avatarIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
    Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
    8f4efc55