summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-02-15 21:40:32 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-24 14:38:55 -0800
commit3cf8b64380af6fd515740b010606ada4637818c5 (patch)
tree9023072ad9612a2fddd0e93c0bc069d5db6713ad
parent2069ecfbe14ebd71a6f98e8a00724e9adf4fe4ee (diff)
downloadop-kernel-dev-3cf8b64380af6fd515740b010606ada4637818c5.zip
op-kernel-dev-3cf8b64380af6fd515740b010606ada4637818c5.tar.gz
PCI: print out PCI device info along with duration
Makes it a little easier to figure out which device may have caused a slow quirk. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Cc: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r--drivers/pci/quirks.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index f8f81d4..7ef4183 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2854,14 +2854,15 @@ static void do_one_fixup_debug(void (*fn)(struct pci_dev *dev), struct pci_dev *
ktime_t calltime, delta, rettime;
unsigned long long duration;
- printk(KERN_DEBUG "calling %pF @ %i\n", fn, task_pid_nr(current));
+ printk(KERN_DEBUG "calling %pF @ %i for %s\n",
+ fn, task_pid_nr(current), dev_name(&dev->dev));
calltime = ktime_get();
fn(dev);
rettime = ktime_get();
delta = ktime_sub(rettime, calltime);
duration = (unsigned long long) ktime_to_ns(delta) >> 10;
- printk(KERN_DEBUG "pci fixup %pF returned after %lld usecs\n", fn,
- duration);
+ printk(KERN_DEBUG "pci fixup %pF returned after %lld usecs for %s\n",
+ fn, duration, dev_name(&dev->dev));
}
/*
OpenPOWER on IntegriCloud