diff options
| author | Hans Zhang <18255117159@163.com> | 2026-04-07 21:04:49 +0800 |
|---|---|---|
| committer | Manivannan Sadhasivam <mani@kernel.org> | 2026-07-15 15:13:41 +0200 |
| commit | a03c77abaa802433210f193617000a3c1edd20be (patch) | |
| tree | 15a2d6004158d2cfcbdb589bb0690f0f31429905 /scripts/stackusage | |
| parent | e1c1eb1d8912bd209845f1e7fc99925412fc5af8 (diff) | |
| download | linux-a03c77abaa802433210f193617000a3c1edd20be.tar.gz linux-a03c77abaa802433210f193617000a3c1edd20be.zip | |
PCI: Move pci_bus_speed2lnkctl2() to public header
Move the static array-based pci_bus_speed2lnkctl2() function from
bwctrl.c to pci.h as a public inline function.
This provides efficient O(1) speed-to-LNKCTL2 value conversion using
static array lookup, maintaining optimal performance while enabling
code reuse by other PCIe drivers.
Signed-off-by: Hans Zhang <18255117159@163.com>
[mani: replaced <asm/bug.h> with <linux/bug.h> as per checkpatch]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260407130450.1489318-3-18255117159@163.com
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
