14 #include <linux/module.h>
16 #include <linux/errno.h>
17 #include <linux/slab.h>
20 #include <mach/hardware.h>
30 unsigned long sleep_save_checksum = 0,
checksum = 0;
37 for (i = 0; i < puv3_cpu_pm_fns->
save_count - 1; i++)
42 puv3_cpu_pm_fns->
enter(state);
44 #ifdef CONFIG_INPUT_KEYBOARD
52 for (i = 0; i < puv3_cpu_pm_fns->
save_count - 1; i++)
56 if (
checksum != sleep_save_checksum) {
58 puv3_cpu_pm_fns->
enter(state);
63 pr_debug(
"*** made it back from resume\n");
77 return puv3_cpu_pm_fns->
valid(state);
82 static int puv3_pm_prepare(
void)
86 if (puv3_cpu_pm_fns && puv3_cpu_pm_fns->
prepare)
87 ret = puv3_cpu_pm_fns->
prepare();
92 static void puv3_pm_finish(
void)
94 if (puv3_cpu_pm_fns && puv3_cpu_pm_fns->
finish)
99 .valid = puv3_pm_valid,
101 .prepare = puv3_pm_prepare,
102 .finish = puv3_pm_finish,
105 static int __init puv3_pm_init(
void)
107 if (!puv3_cpu_pm_fns) {