From 49b6520ca8d2110d59427fee816ea4d8efef1385 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Wed, 1 Jan 2020 10:49:39 +0100 Subject: [PATCH] Make thread selection for -m 22100 mode flexible --- src/modules/module_22100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module_22100.c b/src/modules/module_22100.c index da1e4c2f7..82d008100 100644 --- a/src/modules/module_22100.c +++ b/src/modules/module_22100.c @@ -80,7 +80,7 @@ u64 module_tmp_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED c u32 module_kernel_threads_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { - const u32 kernel_threads_max = 256; + const u32 kernel_threads_max = (user_options->kernel_threads_chgd == true) ? user_options->kernel_threads : 256; return kernel_threads_max; }