* Allow 25% tolerance */
| 53 | * Allow 25% tolerance |
| 54 | */ |
| 55 | static int within_range(unsigned int target, unsigned int msec) |
| 56 | { |
| 57 | unsigned int high, low; |
| 58 | |
| 59 | low = (target * 3) / 4; |
| 60 | high = (target * 5) / 4; |
| 61 | return (msec >= low && msec <= high); |
| 62 | } |
| 63 | |
| 64 | static int test(int flags, int expected_ctx, int min_wait, int write_delay, |
| 65 | int nr_cqes, int msec_target) |