]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Clean up resource_alignment parameter to not require static buffer
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 22 Aug 2019 16:10:11 +0000 (10:10 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Sep 2019 18:26:46 +0000 (13:26 -0500)
commitb46a34fa7c3e9a0ed4559ada8181942d73132a01
tree7c67f440c4ee9a588b70cce1c922dcbecb88d5ef
parentcaf663f9d78f28a770dbec3d76dfde29fcf9e392
PCI: Clean up resource_alignment parameter to not require static buffer

Clean up the 'resource_alignment' parameter code to use kstrdup() in the
initcall routine instead of a static buffer that wastes memory regardless
of whether the feature is used.  This allows us to drop 'COMMAND_LINE_SIZE'
bytes (typically 256-4096 depending on architecture) of static data.

This is similar to what has been done for the 'disable_acs_redir'
parameter.

Link: https://lore.kernel.org/r/20190822161013.5481-2-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c