nios2: Export get_cycles
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Jun 2015 04:46:46 +0000 (12:46 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Jun 2015 14:26:00 +0000 (22:26 +0800)
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>
arch/nios2/kernel/time.c

index 7f4547418ee1c8cb5ae5a2fa8398a39da068f406..be186a75f6225f46cb0f18e3bd191257aa20e460 100644 (file)
@@ -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)
 {
This page took 0.025541 seconds and 5 git commands to generate.