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>
This commit is contained in:
Masami Hiramatsu 2020-05-28 23:52:06 +09:00 committed by Shuah Khan
parent 619ee76f5c
commit d0676871fd

View File

@ -6,7 +6,12 @@ config CORDIC
calculations are in fixed point. Module will be called cordic.
config PRIME_NUMBERS
tristate
tristate "Simple prime number generator for testing"
help
This option provides a simple prime number generator for test
modules.
If unsure, say N.
config RATIONAL
bool