Skip to content
  1. Jan 25, 2018
  2. Jan 18, 2018
  3. Jan 17, 2018
  4. Jan 16, 2018
  5. Jan 15, 2018
    • Gregory Nutt's avatar
      sched/clock/clock_systimer.c: Change the way that the 64-bit time is sampled.... · e238c8b0
      Gregory Nutt authored
      sched/clock/clock_systimer.c:  Change the way that the 64-bit time is sampled.  Previously, we disabled interrupts before sampling the 64-bit timer since the uint64_t access is not atomic on most CPUs.  However, disabling (local) interrupts does not work in the SMP case.  In that case, the timer interrupt will be running on only one of the CPUs; disabling interrupts on a different CPU will provide no protection from timer rollover.  To work around this, logic was added that samples 64-bit timer is sampled twice and if 32-bit rollover was detected between samples, then loops until there is no rollover.
      e238c8b0