summaryrefslogtreecommitdiff
path: root/drivers/ata/libahci_platform.c
diff options
context:
space:
mode:
authorDave Taht <dave.taht@gmail.com>2024-09-09 11:16:28 +0200
committerJakub Kicinski <kuba@kernel.org>2024-09-10 18:31:52 -0700
commitc48994baefdc1e092d1ebd979ae573e73fcfb9c5 (patch)
treeadb4d9a5a1db5d16e87e289bac2dd2ad704d6e5a /drivers/ata/libahci_platform.c
parent3f464b193d40e49299dcd087b10cc3b77cbbea68 (diff)
sch_cake: constify inverse square root cache
sch_cake uses a cache of the first 16 values of the inverse square root calculation for the Cobalt AQM to save some cycles on the fast path. This cache is populated when the qdisc is first loaded, but there's really no reason why it can't just be pre-populated. So change it to be pre-populated with constants, which also makes it possible to constify it. This gives a modest space saving for the module (not counting debug data): .text: -224 bytes .rodata: +80 bytes .bss: -64 bytes Total: -192 bytes Signed-off-by: Dave Taht <dave.taht@gmail.com> [ fixed up comment, rewrote commit message ] Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Link: https://patch.msgid.link/20240909091630.22177-1-toke@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/ata/libahci_platform.c')
0 files changed, 0 insertions, 0 deletions