tests/bench-slope: prevent auto-mhz detection getting stuck
* cipher/bench-slope.c (bench_ghz, bench_ghz_diff): New static variables. (AUTO_GHZ_TARGET_DIFF): New macro. (do_slope_benchmark): Reduce target auto-mhz accuracy after repeated failures. (bench_print_result_csv, bench_print_result_std): Print auto-ghz different if 1 Mhz or more. (do_slope_benchmark, bench_print_result_csv, bench_print_result_std) (bench_print_result): Remove 'bench_ghz' parameter. (cipher_bench_one, hash_bench_one, mac_bench_one) (kdf_bench_one): Remove 'bench_ghz' variable.
This patch prevents auto-mhz detection getting stuck on systems with
high load or unstable CPU frequency.
- Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>