mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 00:34:10 +08:00
[PKTGEN]: Add try_to_freeze()
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>
This commit is contained in:
parent
01102e7ca2
commit
09fe3ef46c
@ -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>
|
||||
@ -3333,6 +3334,8 @@ static int pktgen_thread_worker(void *arg)
|
||||
t->control &= ~(T_REMDEV);
|
||||
}
|
||||
|
||||
try_to_freeze();
|
||||
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user