Commit 05dee9c7 authored by Herbert Xu's avatar Herbert Xu

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: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent fbb145bc
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* for more details. * for more details.
*/ */
#include <linux/export.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/clockchips.h> #include <linux/clockchips.h>
#include <linux/clocksource.h> #include <linux/clocksource.h>
...@@ -106,6 +107,7 @@ cycles_t get_cycles(void) ...@@ -106,6 +107,7 @@ cycles_t get_cycles(void)
{ {
return nios2_timer_read(&nios2_cs.cs); return nios2_timer_read(&nios2_cs.cs);
} }
EXPORT_SYMBOL(get_cycles);
static void nios2_timer_start(struct nios2_timer *timer) static void nios2_timer_start(struct nios2_timer *timer)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment