summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorAlexander Lobakin <aleksander.lobakin@intel.com>2024-06-20 16:53:39 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2024-07-10 20:34:42 +0300
commitbf9bf7042a38ebd2485592467772db50605bd4a2 (patch)
tree2c1d89e28c7ab293586f4708fd933c529e776620 /scripts/lib/kdoc/kdoc_output.py
parente4891e4687c8dd136d80d6c1b857a02931ed6fc8 (diff)
downloadlinux-bf9bf7042a38ebd2485592467772db50605bd4a2.tar.xz
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 <przemyslaw.kitszel@intel.com> Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions