#include <linux/crc32.h>
#include <linux/module.h>
#include <linux/types.h>
+#include <linux/sched.h>
#include "crc32defs.h"
#if CRC_LE_BITS > 8
int i, j;
int errors = 0, runs = 0;
- for (i = 0; i < 100; i++) {
+ for (i = 0; i < 10; i++) {
u32 crc_full;
crc_full = __crc32c_le(test[i].crc, test_buf + test[i].start,
crc_full == test[i].crc32c_le))
errors++;
runs++;
+ cond_resched();
}
}
int i, j;
int errors = 0, runs = 0;
- for (i = 0; i < 100; i++) {
+ for (i = 0; i < 10; i++) {
u32 crc_full;
crc_full = crc32_le(test[i].crc, test_buf + test[i].start,
crc_full == test[i].crc_le))
errors++;
runs++;
+ cond_resched();
}
}