diff options
author | Alexander Lobakin <[email protected]> | 2024-06-20 15:53:39 +0200 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2024-07-10 10:34:42 -0700 |
commit | bf9bf7042a38ebd2485592467772db50605bd4a2 (patch) | |
tree | 2c1d89e28c7ab293586f4708fd933c529e776620 /drivers/usb/cdns3/cdns3-debug.h | |
parent | e4891e4687c8dd136d80d6c1b857a02931ed6fc8 (diff) |
idpf: avoid bloating &idpf_q_vector with big %NR_CPUS
With CONFIG_MAXSMP, sizeof(cpumask_t) is 1 Kb. The queue vector
structure has them embedded, which means 1 additional Kb of not
really hotpath data.
We have cpumask_var_t, which is either an embedded cpumask or a pointer
for allocating it dynamically when it's big. Use it instead of plain
cpumasks and put &idpf_q_vector on a good diet.
Also remove redundant pointer to the interrupt name from the structure.
request_irq() saves it and free_irq() returns it on deinit, so that you
can free the memory.
Reviewed-by: Przemek Kitszel <[email protected]>
Signed-off-by: Alexander Lobakin <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions