PCI: Report quirks that take more than 10ms
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 14 Mar 2018 12:52:30 +0000 (07:52 -0500)
committerBjorn Helgaas <helgaas@kernel.org>
Mon, 19 Mar 2018 18:08:38 +0000 (13:08 -0500)
commit6846b3b5127a9e041f18f0019c38c1fd08acfbaa
tree2d424bc936481e011bfe56542fe7daf40c20405b
parentd89bd9195db62f51a5aaa88d887d81a7967554bd
PCI: Report quirks that take more than 10ms

With "initcall_debug", we report how long every PCI quirk took.

Even without "initcall_debug", report the runtime of any quirk that takes
longer than 10ms.  This is to make it easier to notice quirks that slow
down boot.

This was motivated by a report from Paul Menzel that PCI final quirks took
half a second at boot.

Link: https://lkml.kernel.org/r/44cada166e42007d27b4c3e3aa0744d7@molgen.mpg.de
Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c