diff options
author | Alex Shi <alex.shi@linaro.org> | 2017-12-01 01:02:00 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2017-12-01 01:02:00 +0800 |
commit | 81ab793d6dcb61c8ca908b442cc7b98be7ffa02c (patch) | |
tree | 9fb8e8f214ba8d82daba9f546b7ec348c357f115 /lib | |
parent | d8e6d09cfa7260b12501ce94ca35977be998d4a7 (diff) | |
parent | 08c15ad2e6278a5fe1b209e8fcdbd2d235c48f34 (diff) |
Merge tag 'v4.4.103' into linux-linaro-lsk-v4.4
This is the 4.4.103 stable release
Diffstat (limited to 'lib')
-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 @@ * however I decided to publish this code under the plain GPL. */ +#include <linux/sched.h> #include <linux/string.h> #include "mpi-internal.h" #include "longlong.h" @@ -256,6 +257,7 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) } e <<= 1; c--; + cond_resched(); } i--; |