All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: architected timers: allow dt based discovery using clocksource_of_init
@ 2013-01-21  1:22 ` Thomas Abraham
  0 siblings, 0 replies; 18+ messages in thread
From: Thomas Abraham @ 2013-01-21  1:22 UTC (permalink / raw)
  To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: swarren-DDmLM1+adcrQT0dZR+AlfA, johnstul-r/Jw6+rmf7HQT0dZR+AlfA,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	rob.herring-bsGFqQB8/DxBDgjK7y7TUQ

Add an entry in __clksrc_of_table so that ARMv7 architected timer is
discoverable using call to clocksource_of_init.

Signed-off-by: Thomas Abraham <thomas.abraham-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
 arch/arm/kernel/arch_timer.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/kernel/arch_timer.c b/arch/arm/kernel/arch_timer.c
index c8ef207..d21aada 100644
--- a/arch/arm/kernel/arch_timer.c
+++ b/arch/arm/kernel/arch_timer.c
@@ -504,6 +504,9 @@ int __init arch_timer_of_register(void)
 
 	return arch_timer_register();
 }
+#ifdef CONFIG_CLKSRC_OF
+CLOCKSOURCE_OF_DECLARE(armv7_timer, "arm,armv7-timer", arch_timer_of_register)
+#endif
 
 int __init arch_timer_sched_clock_init(void)
 {
-- 
1.7.5.4

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

end of thread, other threads:[~2013-01-30 17:49 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-21  1:22 [PATCH] ARM: architected timers: allow dt based discovery using clocksource_of_init Thomas Abraham
2013-01-21  1:22 ` Thomas Abraham
2013-01-21 12:13 ` Mark Rutland
2013-01-21 12:13   ` Mark Rutland
     [not found]   ` <20130121121353.GH15707-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-01-21 18:19     ` Thomas Abraham
2013-01-21 18:19       ` Thomas Abraham
     [not found] ` <1358731326-2979-1-git-send-email-thomas.abraham-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2013-01-21 17:21   ` Stephen Warren
2013-01-21 17:21     ` Stephen Warren
2013-01-21 18:25     ` Marc Zyngier
2013-01-21 18:25       ` Marc Zyngier
     [not found]     ` <50FD7904.1070201-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-01-21 18:30       ` Thomas Abraham
2013-01-21 18:30         ` Thomas Abraham
2013-01-22 11:04         ` Mark Rutland
2013-01-22 11:04           ` Mark Rutland
2013-01-30 17:19           ` Mark Rutland
2013-01-30 17:19             ` Mark Rutland
2013-01-30 17:49             ` Stephen Warren
2013-01-30 17:49               ` Stephen Warren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.