diff options
| author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2021-01-19 18:07:56 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-21 23:19:56 +0300 |
| commit | baff4311c40ddae7bfc144dc628d4b11c19f0366 (patch) | |
| tree | f173ddc2e1e1f8b455a62e7cff853e623a340598 /tools/perf/scripts/python | |
| parent | b0292e086beeb741601bd984e10f2e2a585c20ae (diff) | |
| download | linux-baff4311c40ddae7bfc144dc628d4b11c19f0366.tar.xz | |
ethernet: ucc_geth: don't statically allocate eight ucc_geth_info
struct ucc_geth_info is somewhat large, and on systems with only one
or two UCC instances, that just wastes a few KB of memory. So
allocate and populate a chunk of memory at probe time instead of
initializing them all during driver init.
Note that the existing "ug_info == NULL" check was dead code, as the
address of some static array element can obviously never be NULL.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
