]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/power/swsusp.c
Hibernation: Move low level resume to disk.c
[linux-2.6-omap-h63xx.git] / kernel / power / swsusp.c
index 605c536795ba8134983ce6ebfc553dad18c1d5d1..dc29a20aff4107990b549a33193a22de46dc5c7f 100644 (file)
@@ -261,38 +261,3 @@ int swsusp_shrink_memory(void)
 
        return 0;
 }
-
-int swsusp_resume(void)
-{
-       int error;
-
-       local_irq_disable();
-       /* NOTE:  device_power_down() is just a suspend() with irqs off;
-        * it has no special "power things down" semantics
-        */
-       if (device_power_down(PMSG_PRETHAW))
-               printk(KERN_ERR "Some devices failed to power down, very bad\n");
-       /* We'll ignore saved state, but this gets preempt count (etc) right */
-       save_processor_state();
-       error = restore_highmem();
-       if (!error) {
-               error = swsusp_arch_resume();
-               /* The code below is only ever reached in case of a failure.
-                * Otherwise execution continues at place where
-                * swsusp_arch_suspend() was called
-                */
-               BUG_ON(!error);
-               /* This call to restore_highmem() undos the previous one */
-               restore_highmem();
-       }
-       /* The only reason why swsusp_arch_resume() can fail is memory being
-        * very tight, so we have to free it as soon as we can to avoid
-        * subsequent failures
-        */
-       swsusp_free();
-       restore_processor_state();
-       touch_softlockup_watchdog();
-       device_power_up();
-       local_irq_enable();
-       return error;
-}