summaryrefslogtreecommitdiff
path: root/arch/nios2
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-06-09 12:46:46 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-06-09 22:26:00 +0800
commit05dee9c7ebc06719df2dd11bfd3bea96aeaf9707 (patch)
treeb0f3b416f75afb8a9d8e7fc54c70281c5bcdfeca /arch/nios2
parentfbb145bc0a1c03b90a96cca99dc07c33aaad2318 (diff)
downloadlwn-05dee9c7ebc06719df2dd11bfd3bea96aeaf9707.tar.gz
lwn-05dee9c7ebc06719df2dd11bfd3bea96aeaf9707.zip
nios2: Export get_cycles
nios2 is the only architecture that does not inline get_cycles and does not export it. This breaks crypto as it uses get_cycles in a number of modules. Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/kernel/time.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/nios2/kernel/time.c b/arch/nios2/kernel/time.c
index 7f4547418ee1..be186a75f622 100644
--- a/arch/nios2/kernel/time.c
+++ b/arch/nios2/kernel/time.c
@@ -8,6 +8,7 @@
* for more details.
*/
+#include <linux/export.h>
#include <linux/interrupt.h>
#include <linux/clockchips.h>
#include <linux/clocksource.h>
@@ -106,6 +107,7 @@ cycles_t get_cycles(void)
{
return nios2_timer_read(&nios2_cs.cs);
}
+EXPORT_SYMBOL(get_cycles);
static void nios2_timer_start(struct nios2_timer *timer)
{