14 #include <linux/module.h>
16 #include <linux/errno.h>
17 #include <linux/slab.h>
26 unsigned long sleep_save_checksum = 0,
checksum = 0;
32 iwmmxt_task_disable(
NULL);
39 for (i = 0; i < pxa_cpu_pm_fns->
save_count - 1; i++)
44 pxa_cpu_pm_fns->
enter(state);
48 for (i = 0; i < pxa_cpu_pm_fns->
save_count - 1; i++)
52 if (
checksum != sleep_save_checksum) {
57 pxa_cpu_pm_fns->
enter(state);
62 pr_debug(
"*** made it back from resume\n");
72 return pxa_cpu_pm_fns->
valid(state);
81 if (pxa_cpu_pm_fns && pxa_cpu_pm_fns->
prepare)
82 ret = pxa_cpu_pm_fns->
prepare();
89 if (pxa_cpu_pm_fns && pxa_cpu_pm_fns->
finish)
94 .valid = pxa_pm_valid,
100 static int __init pxa_pm_init(
void)
102 if (!pxa_cpu_pm_fns) {