From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH] clocksource: tegra: Port tegra20 clocksource to arm64 Date: Thu, 06 Nov 2014 21:17:00 -0700 Message-ID: <545C47BC.4050207@nvidia.com> References: <1415319715-21757-1-git-send-email-anatol.pomozov@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1415319715-21757-1-git-send-email-anatol.pomozov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Anatol Pomozov Cc: pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org, marc.zyngier-5wv7dgnIgG8@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-tegra@vger.kernel.org On 11/06/2014 05:21 PM, Anatol Pomozov wrote: > register_persistent_clock() are in different headers in arm/arm64 > > Tested: Compiled the driver on 64bit platform and make sure that > it works I assume "it works" refers to "it compiles" not "it executes successfully"? I think it'd be better to make the same APIs available on arm and arm64, or even across all architectures. > Signed-off-by: Anatol Pomozov > --- > drivers/clocksource/tegra20_timer.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/clocksource/tegra20_timer.c b/drivers/clocksource/tegra20_timer.c > index d2616ef..e0123c7 100644 > --- a/drivers/clocksource/tegra20_timer.c > +++ b/drivers/clocksource/tegra20_timer.c > @@ -29,8 +29,12 @@ > #include > #include > > +#ifdef CONFIG_ARM64 > +#include > +#else > #include > #include > +#endif > > #define RTC_SECONDS 0x08 > #define RTC_SHADOW_SECONDS 0x0c >