Commit 7dfb71030f7636a0d65200158113c37764552f93

Authored by Nigel Cunningham
Committed by Linus Torvalds
1 parent 8a05aac263

[PATCH] Add include/linux/freezer.h and move definitions from sched.h

Move process freezing functions from include/linux/sched.h to freezer.h, so
that modifications to the freezer or the kernel configuration don't require
recompiling just about everything.

[akpm@osdl.org: fix ueagle driver]
Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 64 changed files with 147 additions and 101 deletions Side-by-side Diff

arch/arm/kernel/signal.c
... ... @@ -11,6 +11,7 @@
11 11 #include <linux/signal.h>
12 12 #include <linux/ptrace.h>
13 13 #include <linux/personality.h>
  14 +#include <linux/freezer.h>
14 15  
15 16 #include <asm/cacheflush.h>
16 17 #include <asm/ucontext.h>
arch/avr32/kernel/signal.c
... ... @@ -15,7 +15,7 @@
15 15 #include <linux/errno.h>
16 16 #include <linux/ptrace.h>
17 17 #include <linux/unistd.h>
18   -#include <linux/suspend.h>
  18 +#include <linux/freezer.h>
19 19  
20 20 #include <asm/uaccess.h>
21 21 #include <asm/ucontext.h>
arch/frv/kernel/signal.c
... ... @@ -21,7 +21,7 @@
21 21 #include <linux/ptrace.h>
22 22 #include <linux/unistd.h>
23 23 #include <linux/personality.h>
24   -#include <linux/suspend.h>
  24 +#include <linux/freezer.h>
25 25 #include <asm/ucontext.h>
26 26 #include <asm/uaccess.h>
27 27 #include <asm/cacheflush.h>
arch/h8300/kernel/signal.c
... ... @@ -38,7 +38,7 @@
38 38 #include <linux/personality.h>
39 39 #include <linux/tty.h>
40 40 #include <linux/binfmts.h>
41   -#include <linux/suspend.h>
  41 +#include <linux/freezer.h>
42 42  
43 43 #include <asm/setup.h>
44 44 #include <asm/uaccess.h>
arch/i386/kernel/io_apic.c
... ... @@ -34,6 +34,7 @@
34 34 #include <linux/pci.h>
35 35 #include <linux/msi.h>
36 36 #include <linux/htirq.h>
  37 +#include <linux/freezer.h>
37 38  
38 39 #include <asm/io.h>
39 40 #include <asm/smp.h>
arch/m32r/kernel/signal.c
... ... @@ -21,7 +21,7 @@
21 21 #include <linux/unistd.h>
22 22 #include <linux/stddef.h>
23 23 #include <linux/personality.h>
24   -#include <linux/suspend.h>
  24 +#include <linux/freezer.h>
25 25 #include <asm/cacheflush.h>
26 26 #include <asm/ucontext.h>
27 27 #include <asm/uaccess.h>
arch/powerpc/kernel/signal_32.c
... ... @@ -36,7 +36,7 @@
36 36 #include <linux/stddef.h>
37 37 #include <linux/tty.h>
38 38 #include <linux/binfmts.h>
39   -#include <linux/suspend.h>
  39 +#include <linux/freezer.h>
40 40 #endif
41 41  
42 42 #include <asm/uaccess.h>
arch/sh/kernel/signal.c
... ... @@ -23,6 +23,7 @@
23 23 #include <linux/elf.h>
24 24 #include <linux/personality.h>
25 25 #include <linux/binfmts.h>
  26 +#include <linux/freezer.h>
26 27  
27 28 #include <asm/ucontext.h>
28 29 #include <asm/uaccess.h>
arch/sh64/kernel/signal.c
... ... @@ -22,7 +22,7 @@
22 22 #include <linux/errno.h>
23 23 #include <linux/wait.h>
24 24 #include <linux/personality.h>
25   -#include <linux/suspend.h>
  25 +#include <linux/freezer.h>
26 26 #include <linux/ptrace.h>
27 27 #include <linux/unistd.h>
28 28 #include <linux/stddef.h>
drivers/block/pktcdvd.c
... ... @@ -54,7 +54,7 @@
54 54 #include <linux/proc_fs.h>
55 55 #include <linux/seq_file.h>
56 56 #include <linux/miscdevice.h>
57   -#include <linux/suspend.h>
  57 +#include <linux/freezer.h>
58 58 #include <linux/mutex.h>
59 59 #include <scsi/scsi_cmnd.h>
60 60 #include <scsi/scsi_ioctl.h>
drivers/char/hvc_console.c
... ... @@ -38,6 +38,7 @@
38 38 #include <linux/sched.h>
39 39 #include <linux/spinlock.h>
40 40 #include <linux/delay.h>
  41 +#include <linux/freezer.h>
41 42  
42 43 #include <asm/uaccess.h>
43 44  
drivers/edac/edac_mc.c
... ... @@ -28,6 +28,7 @@
28 28 #include <linux/sysdev.h>
29 29 #include <linux/ctype.h>
30 30 #include <linux/kthread.h>
  31 +#include <linux/freezer.h>
31 32 #include <asm/uaccess.h>
32 33 #include <asm/page.h>
33 34 #include <asm/edac.h>
drivers/ieee1394/nodemgr.c
... ... @@ -15,6 +15,7 @@
15 15 #include <linux/delay.h>
16 16 #include <linux/kthread.h>
17 17 #include <linux/moduleparam.h>
  18 +#include <linux/freezer.h>
18 19 #include <asm/atomic.h>
19 20  
20 21 #include "csr.h"
drivers/input/gameport/gameport.c
... ... @@ -23,6 +23,7 @@
23 23 #include <linux/kthread.h>
24 24 #include <linux/sched.h> /* HZ */
25 25 #include <linux/mutex.h>
  26 +#include <linux/freezer.h>
26 27  
27 28 /*#include <asm/io.h>*/
28 29  
drivers/input/serio/serio.c
... ... @@ -35,6 +35,7 @@
35 35 #include <linux/slab.h>
36 36 #include <linux/kthread.h>
37 37 #include <linux/mutex.h>
  38 +#include <linux/freezer.h>
38 39  
39 40 MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>");
40 41 MODULE_DESCRIPTION("Serio abstraction core");
drivers/macintosh/therm_adt746x.c
... ... @@ -24,6 +24,7 @@
24 24 #include <linux/suspend.h>
25 25 #include <linux/kthread.h>
26 26 #include <linux/moduleparam.h>
  27 +#include <linux/freezer.h>
27 28  
28 29 #include <asm/prom.h>
29 30 #include <asm/machdep.h>
drivers/macintosh/via-pmu.c
... ... @@ -42,7 +42,7 @@
42 42 #include <linux/interrupt.h>
43 43 #include <linux/device.h>
44 44 #include <linux/sysdev.h>
45   -#include <linux/suspend.h>
  45 +#include <linux/freezer.h>
46 46 #include <linux/syscalls.h>
47 47 #include <linux/cpu.h>
48 48 #include <asm/prom.h>
drivers/macintosh/windfarm_core.c
... ... @@ -34,6 +34,7 @@
34 34 #include <linux/device.h>
35 35 #include <linux/platform_device.h>
36 36 #include <linux/mutex.h>
  37 +#include <linux/freezer.h>
37 38  
38 39 #include <asm/prom.h>
39 40  
... ... @@ -39,10 +39,10 @@
39 39 #include <linux/raid/bitmap.h>
40 40 #include <linux/sysctl.h>
41 41 #include <linux/buffer_head.h> /* for invalidate_bdev */
42   -#include <linux/suspend.h>
43 42 #include <linux/poll.h>
44 43 #include <linux/mutex.h>
45 44 #include <linux/ctype.h>
  45 +#include <linux/freezer.h>
46 46  
47 47 #include <linux/init.h>
48 48  
drivers/media/dvb/dvb-core/dvb_frontend.c
... ... @@ -34,7 +34,7 @@
34 34 #include <linux/module.h>
35 35 #include <linux/moduleparam.h>
36 36 #include <linux/list.h>
37   -#include <linux/suspend.h>
  37 +#include <linux/freezer.h>
38 38 #include <linux/jiffies.h>
39 39 #include <asm/processor.h>
40 40  
drivers/media/video/msp3400-driver.c
... ... @@ -56,7 +56,7 @@
56 56 #include <media/tvaudio.h>
57 57 #include <media/msp3400.h>
58 58 #include <linux/kthread.h>
59   -#include <linux/suspend.h>
  59 +#include <linux/freezer.h>
60 60 #include "msp3400-driver.h"
61 61  
62 62 /* ---------------------------------------------------------------------- */
drivers/media/video/tvaudio.c
... ... @@ -29,6 +29,7 @@
29 29 #include <linux/init.h>
30 30 #include <linux/smp_lock.h>
31 31 #include <linux/kthread.h>
  32 +#include <linux/freezer.h>
32 33  
33 34 #include <media/tvaudio.h>
34 35 #include <media/v4l2-common.h>
drivers/media/video/video-buf-dvb.c
... ... @@ -20,7 +20,7 @@
20 20 #include <linux/fs.h>
21 21 #include <linux/kthread.h>
22 22 #include <linux/file.h>
23   -#include <linux/suspend.h>
  23 +#include <linux/freezer.h>
24 24  
25 25 #include <media/video-buf.h>
26 26 #include <media/video-buf-dvb.h>
drivers/media/video/vivi.c
... ... @@ -36,6 +36,7 @@
36 36 #include <media/v4l2-common.h>
37 37 #include <linux/kthread.h>
38 38 #include <linux/highmem.h>
  39 +#include <linux/freezer.h>
39 40  
40 41 /* Wake up at about 30 fps */
41 42 #define WAKE_NUMERATOR 30
drivers/mfd/ucb1x00-ts.c
... ... @@ -28,7 +28,7 @@
28 28 #include <linux/string.h>
29 29 #include <linux/input.h>
30 30 #include <linux/device.h>
31   -#include <linux/suspend.h>
  31 +#include <linux/freezer.h>
32 32 #include <linux/slab.h>
33 33 #include <linux/kthread.h>
34 34  
drivers/net/irda/stir4200.c
... ... @@ -50,6 +50,7 @@
50 50 #include <linux/usb.h>
51 51 #include <linux/crc32.h>
52 52 #include <linux/kthread.h>
  53 +#include <linux/freezer.h>
53 54 #include <net/irda/irda.h>
54 55 #include <net/irda/irlap.h>
55 56 #include <net/irda/irda_device.h>
drivers/net/wireless/airo.c
... ... @@ -49,6 +49,7 @@
49 49 #include <asm/uaccess.h>
50 50 #include <net/ieee80211.h>
51 51 #include <linux/kthread.h>
  52 +#include <linux/freezer.h>
52 53  
53 54 #include "airo.h"
54 55  
... ... @@ -29,6 +29,7 @@
29 29 #include <linux/pci.h>
30 30 #include <linux/device.h>
31 31 #include <linux/kthread.h>
  32 +#include <linux/freezer.h>
32 33 #include <asm/system.h>
33 34 #include <asm/irq.h>
34 35  
drivers/pnp/pnpbios/core.c
... ... @@ -61,6 +61,7 @@
61 61 #include <linux/dmi.h>
62 62 #include <linux/delay.h>
63 63 #include <linux/acpi.h>
  64 +#include <linux/freezer.h>
64 65  
65 66 #include <asm/page.h>
66 67 #include <asm/desc.h>
drivers/usb/atm/ueagle-atm.c
... ... @@ -64,6 +64,8 @@
64 64 #include <linux/kthread.h>
65 65 #include <linux/version.h>
66 66 #include <linux/mutex.h>
  67 +#include <linux/freezer.h>
  68 +
67 69 #include <asm/unaligned.h>
68 70  
69 71 #include "usbatm.h"
drivers/usb/core/hub.c
... ... @@ -22,6 +22,7 @@
22 22 #include <linux/usbdevice_fs.h>
23 23 #include <linux/kthread.h>
24 24 #include <linux/mutex.h>
  25 +#include <linux/freezer.h>
25 26  
26 27 #include <asm/semaphore.h>
27 28 #include <asm/uaccess.h>
drivers/usb/gadget/file_storage.c
... ... @@ -250,7 +250,7 @@
250 250 #include <linux/slab.h>
251 251 #include <linux/spinlock.h>
252 252 #include <linux/string.h>
253   -#include <linux/suspend.h>
  253 +#include <linux/freezer.h>
254 254 #include <linux/utsname.h>
255 255  
256 256 #include <linux/usb_ch9.h>
drivers/usb/storage/usb.c
... ... @@ -49,7 +49,7 @@
49 49  
50 50 #include <linux/sched.h>
51 51 #include <linux/errno.h>
52   -#include <linux/suspend.h>
  52 +#include <linux/freezer.h>
53 53 #include <linux/module.h>
54 54 #include <linux/init.h>
55 55 #include <linux/slab.h>
... ... @@ -31,6 +31,7 @@
31 31 #include <linux/slab.h>
32 32 #include <linux/sched.h>
33 33 #include <linux/kthread.h>
  34 +#include <linux/freezer.h>
34 35  
35 36 #include <asm/atomic.h>
36 37  
... ... @@ -20,6 +20,7 @@
20 20 #include <linux/init.h>
21 21 #include <linux/sched.h>
22 22 #include <linux/completion.h>
  23 +#include <linux/freezer.h>
23 24 #include "cell.h"
24 25 #include "server.h"
25 26 #include "volume.h"
... ... @@ -13,6 +13,7 @@
13 13 #include <linux/init.h>
14 14 #include <linux/sched.h>
15 15 #include <linux/completion.h>
  16 +#include <linux/freezer.h>
16 17 #include "cell.h"
17 18 #include "volume.h"
18 19 #include "kafstimod.h"
... ... @@ -34,6 +34,7 @@
34 34 #include <linux/mempool.h>
35 35 #include <linux/delay.h>
36 36 #include <linux/kthread.h>
  37 +#include <linux/freezer.h>
37 38 #include "cifsfs.h"
38 39 #include "cifspdu.h"
39 40 #define DECLARE_GLOBALS_HERE
... ... @@ -31,6 +31,7 @@
31 31 #include <linux/delay.h>
32 32 #include <linux/completion.h>
33 33 #include <linux/pagevec.h>
  34 +#include <linux/freezer.h>
34 35 #include <asm/uaccess.h>
35 36 #include <asm/processor.h>
36 37 #include "cifspdu.h"
... ... @@ -31,7 +31,7 @@
31 31 #include <linux/smp_lock.h>
32 32 #include <linux/init.h>
33 33 #include <linux/mm.h>
34   -#include <linux/suspend.h>
  34 +#include <linux/freezer.h>
35 35 #include <linux/pagemap.h>
36 36 #include <linux/kthread.h>
37 37 #include <linux/poison.h>
... ... @@ -31,7 +31,7 @@
31 31 #include <linux/smp_lock.h>
32 32 #include <linux/init.h>
33 33 #include <linux/mm.h>
34   -#include <linux/suspend.h>
  34 +#include <linux/freezer.h>
35 35 #include <linux/pagemap.h>
36 36 #include <linux/kthread.h>
37 37 #include <linux/poison.h>
... ... @@ -66,6 +66,7 @@
66 66 #include <linux/smp_lock.h>
67 67 #include <linux/time.h>
68 68 #include <linux/ctype.h>
  69 +#include <linux/freezer.h>
69 70  
70 71 #include "intrep.h"
71 72 #include "jffs_fm.h"
fs/jffs2/background.c
... ... @@ -16,6 +16,7 @@
16 16 #include <linux/mtd/mtd.h>
17 17 #include <linux/completion.h>
18 18 #include <linux/sched.h>
  19 +#include <linux/freezer.h>
19 20 #include "nodelist.h"
20 21  
21 22  
... ... @@ -67,7 +67,7 @@
67 67 #include <linux/kthread.h>
68 68 #include <linux/buffer_head.h> /* for sync_blockdev() */
69 69 #include <linux/bio.h>
70   -#include <linux/suspend.h>
  70 +#include <linux/freezer.h>
71 71 #include <linux/delay.h>
72 72 #include <linux/mutex.h>
73 73 #include "jfs_incore.h"
... ... @@ -46,7 +46,7 @@
46 46 #include <linux/vmalloc.h>
47 47 #include <linux/smp_lock.h>
48 48 #include <linux/completion.h>
49   -#include <linux/suspend.h>
  49 +#include <linux/freezer.h>
50 50 #include <linux/module.h>
51 51 #include <linux/moduleparam.h>
52 52 #include <linux/kthread.h>
... ... @@ -13,6 +13,7 @@
13 13 #include <linux/nfs_fs.h>
14 14 #include <linux/utsname.h>
15 15 #include <linux/smp_lock.h>
  16 +#include <linux/freezer.h>
16 17 #include <linux/sunrpc/clnt.h>
17 18 #include <linux/sunrpc/svc.h>
18 19 #include <linux/lockd/lockd.h>
fs/xfs/linux-2.6/xfs_buf.c
... ... @@ -32,6 +32,7 @@
32 32 #include <linux/kthread.h>
33 33 #include <linux/migrate.h>
34 34 #include <linux/backing-dev.h>
  35 +#include <linux/freezer.h>
35 36  
36 37 STATIC kmem_zone_t *xfs_buf_zone;
37 38 STATIC kmem_shaker_t xfs_buf_shake;
fs/xfs/linux-2.6/xfs_super.c
... ... @@ -56,6 +56,7 @@
56 56 #include <linux/mempool.h>
57 57 #include <linux/writeback.h>
58 58 #include <linux/kthread.h>
  59 +#include <linux/freezer.h>
59 60  
60 61 STATIC struct quotactl_ops xfs_quotactl_operations;
61 62 STATIC struct super_operations xfs_super_operations;
include/linux/freezer.h
  1 +/* Freezer declarations */
  2 +
  3 +#ifdef CONFIG_PM
  4 +/*
  5 + * Check if a process has been frozen
  6 + */
  7 +static inline int frozen(struct task_struct *p)
  8 +{
  9 + return p->flags & PF_FROZEN;
  10 +}
  11 +
  12 +/*
  13 + * Check if there is a request to freeze a process
  14 + */
  15 +static inline int freezing(struct task_struct *p)
  16 +{
  17 + return p->flags & PF_FREEZE;
  18 +}
  19 +
  20 +/*
  21 + * Request that a process be frozen
  22 + * FIXME: SMP problem. We may not modify other process' flags!
  23 + */
  24 +static inline void freeze(struct task_struct *p)
  25 +{
  26 + p->flags |= PF_FREEZE;
  27 +}
  28 +
  29 +/*
  30 + * Sometimes we may need to cancel the previous 'freeze' request
  31 + */
  32 +static inline void do_not_freeze(struct task_struct *p)
  33 +{
  34 + p->flags &= ~PF_FREEZE;
  35 +}
  36 +
  37 +/*
  38 + * Wake up a frozen process
  39 + */
  40 +static inline int thaw_process(struct task_struct *p)
  41 +{
  42 + if (frozen(p)) {
  43 + p->flags &= ~PF_FROZEN;
  44 + wake_up_process(p);
  45 + return 1;
  46 + }
  47 + return 0;
  48 +}
  49 +
  50 +/*
  51 + * freezing is complete, mark process as frozen
  52 + */
  53 +static inline void frozen_process(struct task_struct *p)
  54 +{
  55 + p->flags = (p->flags & ~PF_FREEZE) | PF_FROZEN;
  56 +}
  57 +
  58 +extern void refrigerator(void);
  59 +extern int freeze_processes(void);
  60 +extern void thaw_processes(void);
  61 +
  62 +static inline int try_to_freeze(void)
  63 +{
  64 + if (freezing(current)) {
  65 + refrigerator();
  66 + return 1;
  67 + } else
  68 + return 0;
  69 +}
  70 +#else
  71 +static inline int frozen(struct task_struct *p) { return 0; }
  72 +static inline int freezing(struct task_struct *p) { return 0; }
  73 +static inline void freeze(struct task_struct *p) { BUG(); }
  74 +static inline int thaw_process(struct task_struct *p) { return 1; }
  75 +static inline void frozen_process(struct task_struct *p) { BUG(); }
  76 +
  77 +static inline void refrigerator(void) {}
  78 +static inline int freeze_processes(void) { BUG(); return 0; }
  79 +static inline void thaw_processes(void) {}
  80 +
  81 +static inline int try_to_freeze(void) { return 0; }
  82 +
  83 +
  84 +#endif
include/linux/sched.h
... ... @@ -1618,87 +1618,6 @@
1618 1618  
1619 1619 extern void normalize_rt_tasks(void);
1620 1620  
1621   -#ifdef CONFIG_PM
1622   -/*
1623   - * Check if a process has been frozen
1624   - */
1625   -static inline int frozen(struct task_struct *p)
1626   -{
1627   - return p->flags & PF_FROZEN;
1628   -}
1629   -
1630   -/*
1631   - * Check if there is a request to freeze a process
1632   - */
1633   -static inline int freezing(struct task_struct *p)
1634   -{
1635   - return p->flags & PF_FREEZE;
1636   -}
1637   -
1638   -/*
1639   - * Request that a process be frozen
1640   - * FIXME: SMP problem. We may not modify other process' flags!
1641   - */
1642   -static inline void freeze(struct task_struct *p)
1643   -{
1644   - p->flags |= PF_FREEZE;
1645   -}
1646   -
1647   -/*
1648   - * Sometimes we may need to cancel the previous 'freeze' request
1649   - */
1650   -static inline void do_not_freeze(struct task_struct *p)
1651   -{
1652   - p->flags &= ~PF_FREEZE;
1653   -}
1654   -
1655   -/*
1656   - * Wake up a frozen process
1657   - */
1658   -static inline int thaw_process(struct task_struct *p)
1659   -{
1660   - if (frozen(p)) {
1661   - p->flags &= ~PF_FROZEN;
1662   - wake_up_process(p);
1663   - return 1;
1664   - }
1665   - return 0;
1666   -}
1667   -
1668   -/*
1669   - * freezing is complete, mark process as frozen
1670   - */
1671   -static inline void frozen_process(struct task_struct *p)
1672   -{
1673   - p->flags = (p->flags & ~PF_FREEZE) | PF_FROZEN;
1674   -}
1675   -
1676   -extern void refrigerator(void);
1677   -extern int freeze_processes(void);
1678   -extern void thaw_processes(void);
1679   -
1680   -static inline int try_to_freeze(void)
1681   -{
1682   - if (freezing(current)) {
1683   - refrigerator();
1684   - return 1;
1685   - } else
1686   - return 0;
1687   -}
1688   -#else
1689   -static inline int frozen(struct task_struct *p) { return 0; }
1690   -static inline int freezing(struct task_struct *p) { return 0; }
1691   -static inline void freeze(struct task_struct *p) { BUG(); }
1692   -static inline int thaw_process(struct task_struct *p) { return 1; }
1693   -static inline void frozen_process(struct task_struct *p) { BUG(); }
1694   -
1695   -static inline void refrigerator(void) {}
1696   -static inline int freeze_processes(void) { BUG(); return 0; }
1697   -static inline void thaw_processes(void) {}
1698   -
1699   -static inline int try_to_freeze(void) { return 0; }
1700   -
1701   -#endif /* CONFIG_PM */
1702 1621 #endif /* __KERNEL__ */
1703 1622  
1704 1623 #endif
init/do_mounts_initrd.c
... ... @@ -6,6 +6,7 @@
6 6 #include <linux/romfs_fs.h>
7 7 #include <linux/initrd.h>
8 8 #include <linux/sched.h>
  9 +#include <linux/freezer.h>
9 10  
10 11 #include "do_mounts.h"
11 12  
... ... @@ -57,6 +57,7 @@
57 57 #include <linux/netlink.h>
58 58 #include <linux/selinux.h>
59 59 #include <linux/inotify.h>
  60 +#include <linux/freezer.h>
60 61  
61 62 #include "audit.h"
62 63  
... ... @@ -20,6 +20,7 @@
20 20 #include <linux/pm.h>
21 21 #include <linux/console.h>
22 22 #include <linux/cpu.h>
  23 +#include <linux/freezer.h>
23 24  
24 25 #include "power.h"
25 26  
... ... @@ -18,6 +18,7 @@
18 18 #include <linux/console.h>
19 19 #include <linux/cpu.h>
20 20 #include <linux/resume-trace.h>
  21 +#include <linux/freezer.h>
21 22  
22 23 #include "power.h"
23 24  
kernel/power/process.c
... ... @@ -13,6 +13,7 @@
13 13 #include <linux/suspend.h>
14 14 #include <linux/module.h>
15 15 #include <linux/syscalls.h>
  16 +#include <linux/freezer.h>
16 17  
17 18 /*
18 19 * Timeout for stopping processes
... ... @@ -22,6 +22,7 @@
22 22 #include <linux/fs.h>
23 23 #include <linux/console.h>
24 24 #include <linux/cpu.h>
  25 +#include <linux/freezer.h>
25 26  
26 27 #include <asm/uaccess.h>
27 28  
kernel/rtmutex-tester.c
... ... @@ -13,6 +13,7 @@
13 13 #include <linux/spinlock.h>
14 14 #include <linux/sysdev.h>
15 15 #include <linux/timer.h>
  16 +#include <linux/freezer.h>
16 17  
17 18 #include "rtmutex.h"
18 19  
... ... @@ -34,7 +34,7 @@
34 34 #include <linux/security.h>
35 35 #include <linux/notifier.h>
36 36 #include <linux/profile.h>
37   -#include <linux/suspend.h>
  37 +#include <linux/freezer.h>
38 38 #include <linux/vmalloc.h>
39 39 #include <linux/blkdev.h>
40 40 #include <linux/delay.h>
... ... @@ -23,6 +23,7 @@
23 23 #include <linux/ptrace.h>
24 24 #include <linux/signal.h>
25 25 #include <linux/capability.h>
  26 +#include <linux/freezer.h>
26 27 #include <asm/param.h>
27 28 #include <asm/uaccess.h>
28 29 #include <asm/unistd.h>
... ... @@ -21,6 +21,7 @@
21 21 #include <linux/writeback.h> // Prototypes pdflush_operation()
22 22 #include <linux/kthread.h>
23 23 #include <linux/cpuset.h>
  24 +#include <linux/freezer.h>
24 25  
25 26  
26 27 /*
... ... @@ -36,6 +36,7 @@
36 36 #include <linux/rwsem.h>
37 37 #include <linux/delay.h>
38 38 #include <linux/kthread.h>
  39 +#include <linux/freezer.h>
39 40  
40 41 #include <asm/tlbflush.h>
41 42 #include <asm/div64.h>
... ... @@ -13,6 +13,7 @@
13 13 #include <linux/completion.h>
14 14 #include <linux/spinlock.h>
15 15 #include <linux/init.h>
  16 +#include <linux/freezer.h>
16 17 #include <rxrpc/krxiod.h>
17 18 #include <rxrpc/transport.h>
18 19 #include <rxrpc/peer.h>
... ... @@ -27,6 +27,7 @@
27 27 #include <rxrpc/call.h>
28 28 #include <linux/udp.h>
29 29 #include <linux/ip.h>
  30 +#include <linux/freezer.h>
30 31 #include <net/sock.h>
31 32 #include "internal.h"
32 33  
net/rxrpc/krxtimod.c
... ... @@ -13,6 +13,7 @@
13 13 #include <linux/init.h>
14 14 #include <linux/sched.h>
15 15 #include <linux/completion.h>
  16 +#include <linux/freezer.h>
16 17 #include <rxrpc/rxrpc.h>
17 18 #include <rxrpc/krxtimod.h>
18 19 #include <asm/errno.h>
net/sunrpc/svcsock.c
... ... @@ -32,6 +32,7 @@
32 32 #include <linux/netdevice.h>
33 33 #include <linux/skbuff.h>
34 34 #include <linux/file.h>
  35 +#include <linux/freezer.h>
35 36 #include <net/sock.h>
36 37 #include <net/checksum.h>
37 38 #include <net/ip.h>