From 871480933a1c28f8a9fed4c4d34d06c439a7a422 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Sun, 11 Jan 2015 12:28:04 +0530 Subject: Moved, renamed, and deleted files The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure. --- ANDROID_3.4.5/arch/powerpc/kernel/swsusp.c | 38 ------------------------------ 1 file changed, 38 deletions(-) delete mode 100644 ANDROID_3.4.5/arch/powerpc/kernel/swsusp.c (limited to 'ANDROID_3.4.5/arch/powerpc/kernel/swsusp.c') diff --git a/ANDROID_3.4.5/arch/powerpc/kernel/swsusp.c b/ANDROID_3.4.5/arch/powerpc/kernel/swsusp.c deleted file mode 100644 index eae33e10..00000000 --- a/ANDROID_3.4.5/arch/powerpc/kernel/swsusp.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Common powerpc suspend code for 32 and 64 bits - * - * Copyright 2007 Johannes Berg - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ - -#include -#include -#include -#include - -void save_processor_state(void) -{ - /* - * flush out all the special registers so we don't need - * to save them in the snapshot - */ - flush_fp_to_thread(current); - flush_altivec_to_thread(current); - flush_spe_to_thread(current); - -#ifdef CONFIG_PPC64 - hard_irq_disable(); -#endif - -} - -void restore_processor_state(void) -{ -#ifdef CONFIG_PPC32 - switch_mmu_context(current->active_mm, current->active_mm); -#endif -} -- cgit