48 extern int cpr_check_spec_statefile(void);
49 extern int cpr_reusable_mount_check(void);
50 extern int i_cpr_reusable_supported(void);
51 extern int i_cpr_reusefini(void);
52 extern struct mod_ops mod_miscops;
53
54 extern int cpr_init(int);
55 extern void cpr_done(void);
56 extern void i_cpr_stop_other_cpus(void);
57 extern int i_cpr_power_down(int);
58
59 #if defined(__sparc)
60 extern void cpr_forget_cprconfig(void);
61 #endif
62
63 static struct modlmisc modlmisc = {
64 &mod_miscops, "checkpoint resume"
65 };
66
67 static struct modlinkage modlinkage = {
68 MODREV_1, (void *)&modlmisc, NULL
69 };
70
71 int cpr_reusable_mode;
72
73 kmutex_t cpr_slock; /* cpr serial lock */
74 cpr_t cpr_state;
75 int cpr_debug;
76 int cpr_test_mode; /* true if called via uadmin testmode */
77 int cpr_test_point = LOOP_BACK_NONE; /* cpr test point */
78 int cpr_mp_enable = 0; /* set to 1 to enable MP suspend */
79 major_t cpr_device = 0; /* major number for S3 on one device */
80
81 /*
82 * All the loadable module related code follows
83 */
84 int
85 _init(void)
86 {
87 register int e;
88
|
48 extern int cpr_check_spec_statefile(void);
49 extern int cpr_reusable_mount_check(void);
50 extern int i_cpr_reusable_supported(void);
51 extern int i_cpr_reusefini(void);
52 extern struct mod_ops mod_miscops;
53
54 extern int cpr_init(int);
55 extern void cpr_done(void);
56 extern void i_cpr_stop_other_cpus(void);
57 extern int i_cpr_power_down(int);
58
59 #if defined(__sparc)
60 extern void cpr_forget_cprconfig(void);
61 #endif
62
63 static struct modlmisc modlmisc = {
64 &mod_miscops, "checkpoint resume"
65 };
66
67 static struct modlinkage modlinkage = {
68 MODREV_1, { (void *)&modlmisc, NULL }
69 };
70
71 int cpr_reusable_mode;
72
73 kmutex_t cpr_slock; /* cpr serial lock */
74 cpr_t cpr_state;
75 int cpr_debug;
76 int cpr_test_mode; /* true if called via uadmin testmode */
77 int cpr_test_point = LOOP_BACK_NONE; /* cpr test point */
78 int cpr_mp_enable = 0; /* set to 1 to enable MP suspend */
79 major_t cpr_device = 0; /* major number for S3 on one device */
80
81 /*
82 * All the loadable module related code follows
83 */
84 int
85 _init(void)
86 {
87 register int e;
88
|