On 11/11/2015 03:50 PM, Yoshinori Sato wrote:
Overflow interrupt is used for moving up of a count.

Signed-off-by: Yoshinori Sato <[email protected]>
---

[ ... ]

@@ -118,6 +119,7 @@ static struct timer16_priv timer16_priv = {
                .enable = timer16_enable,
                .disable = timer16_disable,
                .mask = CLOCKSOURCE_MASK(sizeof(unsigned long) * 8),
+               .max_cycles = 0xffffffff,

This is computed automatically when registering the clocksource.

clocksource_register_hz
  __clocksource_register_scale
    __clocksource_update_freq_scale
        clocksource_update_max_deferment
=>            clocks_calc_max_nsecs


                .flags = CLOCK_SOURCE_IS_CONTINUOUS,
        },
  };

[ ... ]

--
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to