Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271187
b: refs/heads/master
c: 0acf000
h: refs/heads/master
i:
  271185: 38bead7
  271183: 8f43c8e
v: v3
  • Loading branch information
Michal Hocko authored and Rusty Russell committed Oct 27, 2011
1 parent 08709f5 commit 4ca90da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89cfc99177c9270c5c6d429f6c5177ab3428ad57
refs/heads/master: 0acf00014bcfd71090c3b0d43c98e970108064e4
14 changes: 7 additions & 7 deletions trunk/drivers/lguest/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user)
}
}

/*
* All long-lived kernel loops need to check with this horrible
* thing called the freezer. If the Host is trying to suspend,
* it stops us.
*/
try_to_freeze();

/* Check for signals */
if (signal_pending(current))
return -ERESTARTSYS;
Expand All @@ -245,13 +252,6 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user)
if (irq < LGUEST_IRQS)
try_deliver_interrupt(cpu, irq, more);

/*
* All long-lived kernel loops need to check with this horrible
* thing called the freezer. If the Host is trying to suspend,
* it stops us.
*/
try_to_freeze();

/*
* Just make absolutely sure the Guest is still alive. One of
* those hypercalls could have been fatal, for example.
Expand Down

0 comments on commit 4ca90da

Please sign in to comment.