Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68024
b: refs/heads/master
c: 3d034ae
h: refs/heads/master
v: v3
  • Loading branch information
Denis V. Lunev authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent dd361f5 commit c26b582
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa24886e379d2b641c5117e178b15ce1d5d366ba
refs/heads/master: 3d034aecd8b70d34388a4e40ca50af0d014223e1
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/reboot_fixups_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <asm/delay.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <asm/reboot_fixups.h>
#include <asm/msr.h>

Expand Down Expand Up @@ -56,6 +57,11 @@ void mach_reboot_fixups(void)
struct pci_dev *dev;
int i;

/* we can be called from sysrq-B code. In such a case it is
* prohibited to dig PCI */
if (in_interrupt())
return;

for (i=0; i < ARRAY_SIZE(fixups_table); i++) {
cur = &(fixups_table[i]);
dev = pci_get_device(cur->vendor, cur->device, NULL);
Expand Down

0 comments on commit c26b582

Please sign in to comment.