Skip to content

Commit

Permalink
[PKTGEN]: Add try_to_freeze()
Browse files Browse the repository at this point in the history
The pktgen module prevents suspend-to-disk.  Fix.

Acked-by: "Michal Piotrowski" <michal.k.k.piotrowski@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
akpm00 authored and davem330 committed Apr 12, 2007
1 parent 01102e7 commit 09fe3ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/capability.h>
#include <linux/freezer.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/list.h>
Expand Down Expand Up @@ -3333,6 +3334,8 @@ static int pktgen_thread_worker(void *arg)
t->control &= ~(T_REMDEV);
}

try_to_freeze();

set_current_state(TASK_INTERRUPTIBLE);
}

Expand Down

0 comments on commit 09fe3ef

Please sign in to comment.