aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorAlexander Lobakin <[email protected]>2024-06-20 15:53:39 +0200
committerTony Nguyen <[email protected]>2024-07-10 10:34:42 -0700
commitbf9bf7042a38ebd2485592467772db50605bd4a2 (patch)
tree2c1d89e28c7ab293586f4708fd933c529e776620 /drivers/usb/cdns3/cdns3-debug.h
parente4891e4687c8dd136d80d6c1b857a02931ed6fc8 (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