]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
MIPS: PCI: Reduce stack frame usage
authorKeith Busch <keith.busch@intel.com>
Tue, 13 Sep 2016 15:21:47 +0000 (09:21 -0600)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 4 Oct 2016 14:13:57 +0000 (16:13 +0200)
commit5f92635462d64f09f4643e7c15c48ea7a1f7d2b7
tree36bd5ffbf1923034222f2b656aba6430517e6d36
parent44ce9a9ae977736fe7f470a7b1e506028375165a
MIPS: PCI: Reduce stack frame usage

This patch removes creating a fake pci device in MIPS early config
access and instead just uses the pci bus to get the same functionality.
The struct pci_dev is too large to allocate on the stack, and was relying
on compiler optimizations to remove its usage.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14253/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/txx9/generic/pci.c