]> git.baikalelectronics.ru Git - 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)
commitce0c1d121f329ceef9c19765e54ccea16e26989c
tree36bd5ffbf1923034222f2b656aba6430517e6d36
parente143640e0d0804f0ff1d642cb694e0a2ba50dbd4
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