diff options
author | Daniel Latypov <dlatypov@google.com> | 2020-12-09 02:21:02 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2021-02-09 01:38:55 +0300 |
commit | d3bae4a0b6e1bfbfcff3dbc2a6d96a505e31677e (patch) | |
tree | a5ce80efff581ab42471ef7b44da91896f97f557 /scripts/gdb/linux/proc.py | |
parent | cd4a9bc8e0472da94f60f980d325c4825eacd918 (diff) | |
download | linux-d3bae4a0b6e1bfbfcff3dbc2a6d96a505e31677e.tar.xz |
kunit: tool: simplify kconfig is_subset_of() logic
Don't use an O(nm) algorithm* and make it more readable by using a dict.
*Most obviously, it does a nested for-loop over the entire other config.
A bit more subtle, it calls .entries(), which constructs a set from the
list for _every_ outer iteration.
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Tested-by: Brendan Higgins <brendanhiggins@google.com>
Acked-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions