lkml.org 
[lkml]   [2015]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 1/4] h8300: clocksource: Use overflow interrupt
    From
    Date
    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 <ysato@users.sourceforge.jp>
    > ---

    [ ... ]

    > @@ -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



    \
     
     \ /
      Last update: 2015-11-12 18:21    [W:5.584 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site