diff options
Diffstat (limited to 'lib/mpi/mpi-pow.c')
| -rw-r--r-- | lib/mpi/mpi-pow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mpi/mpi-pow.c b/lib/mpi/mpi-pow.c index e24388a863a7..468fb7cd1221 100644 --- a/lib/mpi/mpi-pow.c +++ b/lib/mpi/mpi-pow.c | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | * however I decided to publish this code under the plain GPL. | 26 | * however I decided to publish this code under the plain GPL. |
| 27 | */ | 27 | */ |
| 28 | 28 | ||
| 29 | #include <linux/sched.h> | ||
| 29 | #include <linux/string.h> | 30 | #include <linux/string.h> |
| 30 | #include "mpi-internal.h" | 31 | #include "mpi-internal.h" |
| 31 | #include "longlong.h" | 32 | #include "longlong.h" |
| @@ -256,6 +257,7 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) | |||
| 256 | } | 257 | } |
| 257 | e <<= 1; | 258 | e <<= 1; |
| 258 | c--; | 259 | c--; |
| 260 | cond_resched(); | ||
| 259 | } | 261 | } |
| 260 | 262 | ||
| 261 | i--; | 263 | i--; |
