mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clocksource: tegra: Port tegra20 clocksource to arm64
@ 2014-11-07  0:21 Anatol Pomozov
  2014-11-07  4:17 ` Stephen Warren
  0 siblings, 1 reply; 3+ messages in thread
From: Anatol Pomozov @ 2014-11-07  0:21 UTC (permalink / raw)
  To: pdeschrijver, swarren; +Cc: marc.zyngier, linux-kernel, Anatol Pomozov

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-07  4:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-07  0:21 [PATCH] clocksource: tegra: Port tegra20 clocksource to arm64 Anatol Pomozov
2014-11-07  4:17 ` Stephen Warren
2014-11-07  4:26   ` Anatol Pomozov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®