Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib: Make prime number generator independently selectable

Make prime number generator independently selectable from
kconfig. This allows us to enable CONFIG_PRIME_NUMBERS=m
and run the tools/testing/selftests/lib/prime_numbers.sh
without other DRM selftest modules.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Masami Hiramatsu and committed by
Shuah Khan
d0676871 619ee76f

+6 -1
+6 -1
lib/math/Kconfig
··· 6 6 calculations are in fixed point. Module will be called cordic. 7 7 8 8 config PRIME_NUMBERS 9 - tristate 9 + tristate "Simple prime number generator for testing" 10 + help 11 + This option provides a simple prime number generator for test 12 + modules. 13 + 14 + If unsure, say N. 10 15 11 16 config RATIONAL 12 17 bool