Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932476AbbKLQuz (ORCPT ); Thu, 12 Nov 2015 11:50:55 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:34818 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754600AbbKLQuv (ORCPT ); Thu, 12 Nov 2015 11:50:51 -0500 Subject: Re: [PATCH 1/4] h8300: clocksource: Use overflow interrupt To: Yoshinori Sato , Thomas Gleixner References: <1447063614-4662-1-git-send-email-daniel.lezcano@linaro.org> <1447253416-13892-1-git-send-email-ysato@users.sourceforge.jp> <1447253416-13892-2-git-send-email-ysato@users.sourceforge.jp> Cc: linux-kernel@vger.kernel.org, John Stultz From: Daniel Lezcano Message-ID: <5644C367.9010309@linaro.org> Date: Thu, 12 Nov 2015 17:50:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1447253416-13892-2-git-send-email-ysato@users.sourceforge.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1181 Lines: 41 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 > --- [ ... ] > @@ -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, > }, > }; [ ... ] -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/