diff options
author | 2021-06-18 08:14:58 +0200 | |
---|---|---|
committer | 2021-06-18 13:10:02 +0200 | |
commit | f8b6b327aa73dd69577abd4e164447a9cc124315 (patch) | |
tree | 71b9aa0da6ddb2d27d993242fd069cd63072f4c0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mxser: make mxser_board::idx really an index (diff) | |
download | linux-dev-f8b6b327aa73dd69577abd4e164447a9cc124315.tar.xz linux-dev-f8b6b327aa73dd69577abd4e164447a9cc124315.zip |
mxser: alloc struct mxser_board dynamically
There is no need to preallocate an array of four struct mxser_board's.
In most cases a single board or two will be present in a machine. So
allocate struct mxser_board as needed in ->probe.
This makes mxser_boards a bit array. There we store which indexes are
free (unallocated).
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210618061516.662-53-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions