diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/test_bpf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/test_bpf.c b/lib/test_bpf.c index b4e22345963f..2efb213716fa 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c | |||
| @@ -24,10 +24,11 @@ | |||
| 24 | #include <linux/if_vlan.h> | 24 | #include <linux/if_vlan.h> |
| 25 | #include <linux/random.h> | 25 | #include <linux/random.h> |
| 26 | #include <linux/highmem.h> | 26 | #include <linux/highmem.h> |
| 27 | #include <linux/sched.h> | ||
| 27 | 28 | ||
| 28 | /* General test specific settings */ | 29 | /* General test specific settings */ |
| 29 | #define MAX_SUBTESTS 3 | 30 | #define MAX_SUBTESTS 3 |
| 30 | #define MAX_TESTRUNS 10000 | 31 | #define MAX_TESTRUNS 1000 |
| 31 | #define MAX_DATA 128 | 32 | #define MAX_DATA 128 |
| 32 | #define MAX_INSNS 512 | 33 | #define MAX_INSNS 512 |
| 33 | #define MAX_K 0xffffFFFF | 34 | #define MAX_K 0xffffFFFF |
| @@ -6582,6 +6583,7 @@ static __init int test_bpf(void) | |||
| 6582 | struct bpf_prog *fp; | 6583 | struct bpf_prog *fp; |
| 6583 | int err; | 6584 | int err; |
| 6584 | 6585 | ||
| 6586 | cond_resched(); | ||
| 6585 | if (exclude_test(i)) | 6587 | if (exclude_test(i)) |
| 6586 | continue; | 6588 | continue; |
| 6587 | 6589 | ||
