diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-09 00:46:46 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-09 10:26:00 -0400 |
commit | 05dee9c7ebc06719df2dd11bfd3bea96aeaf9707 (patch) | |
tree | b0f3b416f75afb8a9d8e7fc54c70281c5bcdfeca | |
parent | fbb145bc0a1c03b90a96cca99dc07c33aaad2318 (diff) |
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>
-rw-r--r-- | arch/nios2/kernel/time.c | 2 |
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 @@ | |||
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/export.h> | ||
11 | #include <linux/interrupt.h> | 12 | #include <linux/interrupt.h> |
12 | #include <linux/clockchips.h> | 13 | #include <linux/clockchips.h> |
13 | #include <linux/clocksource.h> | 14 | #include <linux/clocksource.h> |
@@ -106,6 +107,7 @@ cycles_t get_cycles(void) | |||
106 | { | 107 | { |
107 | return nios2_timer_read(&nios2_cs.cs); | 108 | return nios2_timer_read(&nios2_cs.cs); |
108 | } | 109 | } |
110 | EXPORT_SYMBOL(get_cycles); | ||
109 | 111 | ||
110 | static void nios2_timer_start(struct nios2_timer *timer) | 112 | static void nios2_timer_start(struct nios2_timer *timer) |
111 | { | 113 | { |