[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>

authored by Andrew Morton and committed by David S. Miller 09fe3ef4 01102e7c

+3
+3
net/core/pktgen.c
··· 129 129 #include <linux/ioport.h> 130 130 #include <linux/interrupt.h> 131 131 #include <linux/capability.h> 132 + #include <linux/freezer.h> 132 133 #include <linux/delay.h> 133 134 #include <linux/timer.h> 134 135 #include <linux/list.h> ··· 3333 3332 pktgen_rem_one_if(t); 3334 3333 t->control &= ~(T_REMDEV); 3335 3334 } 3335 + 3336 + try_to_freeze(); 3336 3337 3337 3338 set_current_state(TASK_INTERRUPTIBLE); 3338 3339 }