Thread (34 messages) flat view 34 messages, 10 authors, 2012-10-18
STALE5045d

[PATCH 4/9] ARM: export default read_current_timer

From: arnd@arndb.de (Arnd Bergmann)
Date: 2012-10-09 15:24:52
Also in: lkml
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

read_current_timer is used by get_cycles since "ARM: 7538/1: delay:
add registration mechanism for delay timer sources", and get_cycles
can be used by device drivers in loadable modules, so it has to
be exported.

Without this patch, building imote2_defconfig fails with

ERROR: "read_current_timer" [crypto/tcrypt.ko] undefined!

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Boyd <redacted>
Cc: Jonathan Austin <redacted>
Cc: Will Deacon <redacted>
Cc: Russell King <redacted>
---
 arch/arm/lib/delay.c |    1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/arm/lib/delay.c b/arch/arm/lib/delay.c
index 9d0a300..0dc5385 100644
--- a/arch/arm/lib/delay.c
+++ b/arch/arm/lib/delay.c
@@ -45,6 +45,7 @@ int read_current_timer(unsigned long *timer_val)
 	*timer_val = delay_timer->read_current_timer();
 	return 0;
 }
+EXPORT_SYMBOL_GPL(read_current_timer);
 
 static void __timer_delay(unsigned long cycles)
 {
-- 
1.7.10
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help