swsusp.c (be9c94dd7776467813419f49fabe8017bc2d4c81) | swsusp.c (543b9fd3528f64c4b20439de0edb453764482de7) |
---|---|
1/* 2 * Common powerpc suspend code for 32 and 64 bits 3 * 4 * Copyright 2007 Johannes Berg <johannes@sipsolutions.net> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 10 unchanged lines hidden (view full) --- 19{ 20 /* 21 * flush out all the special registers so we don't need 22 * to save them in the snapshot 23 */ 24 flush_fp_to_thread(current); 25 flush_altivec_to_thread(current); 26 flush_spe_to_thread(current); | 1/* 2 * Common powerpc suspend code for 32 and 64 bits 3 * 4 * Copyright 2007 Johannes Berg <johannes@sipsolutions.net> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 10 unchanged lines hidden (view full) --- 19{ 20 /* 21 * flush out all the special registers so we don't need 22 * to save them in the snapshot 23 */ 24 flush_fp_to_thread(current); 25 flush_altivec_to_thread(current); 26 flush_spe_to_thread(current); |
27 28#ifdef CONFIG_PPC64 29 hard_irq_disable(); 30#endif 31 |
|
27} 28 29void restore_processor_state(void) 30{ 31#ifdef CONFIG_PPC32 32 set_context(current->active_mm->context.id, current->active_mm->pgd); 33#endif | 32} 33 34void restore_processor_state(void) 35{ 36#ifdef CONFIG_PPC32 37 set_context(current->active_mm->context.id, current->active_mm->pgd); 38#endif |
39 40#ifdef CONFIG_PPC64 41 hard_irq_enable(); 42#endif |
|
34} | 43} |