Skip to content

Commit

Permalink
lib: Make prime number generator independently selectable
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Reviewed-by: Luis Chamberlain <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
  • Loading branch information
mhiramat authored and shuahkh committed Jun 2, 2020
1 parent 619ee76 commit d067687
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/math/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d067687

Please sign in to comment.