PCI: handle PCI state saving with interrupts disabled
commit63f4898ace2788a89ed685672aab092e1c3e50e6
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 7 Dec 2008 21:02:58 +0000 (7 22:02 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:12:40 +0000 (7 11:12 -0800)
treeed57eeeb486466697c3d97feaf34396dd2a2b992
parent894886e5d3de0bde2eded8a39bf7e76023fbd791
PCI: handle PCI state saving with interrupts disabled

Since interrupts will soon be disabled at PCI resume time, we need to
pre-allocate memory to save/restore PCI config space (or use GFP_ATOMIC,
but this is safer).

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/probe.c