lkml.org 
[lkml]   [2014]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] clocksource: tegra: Port tegra20 clocksource to arm64
Date
register_persistent_clock() are in different headers in arm/arm64

Tested: Compiled the driver on 64bit platform and make sure that
it works

Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
---
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 <linux/sched_clock.h>
#include <linux/delay.h>

+#ifdef CONFIG_ARM64
+#include <asm/time.h>
+#else
#include <asm/mach/time.h>
#include <asm/smp_twd.h>
+#endif

#define RTC_SECONDS 0x08
#define RTC_SHADOW_SECONDS 0x0c
--
2.1.0.rc2.206.gedb03e5


\
 
 \ /
  Last update: 2014-11-07 02:01    [W:0.029 / U:1.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site