summaryrefslogtreecommitdiffstats
path: root/arch/unicore32/include/asm/suspend.h
diff options
context:
space:
mode:
authorGuanXuetao <gxt@mprc.pku.edu.cn>2011-02-26 20:23:59 +0800
committerGuanXuetao <gxt@mprc.pku.edu.cn>2011-03-17 09:19:11 +0800
commit64909882862e9bb88aa6177e3f92056f5601b3e3 (patch)
tree0fade894b903f6185ab97d930004c0cf56eb412d /arch/unicore32/include/asm/suspend.h
parentf864d2f8304e6be90b4c4e4ac615edc6fcefd4c1 (diff)
downloadlinux-64909882862e9bb88aa6177e3f92056f5601b3e3.tar.bz2
unicore32 additional architecture files: pm related files
This patch adds pm related files, including hibernate and sleep supports. Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn> Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/unicore32/include/asm/suspend.h')
-rw-r--r--arch/unicore32/include/asm/suspend.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/unicore32/include/asm/suspend.h b/arch/unicore32/include/asm/suspend.h
new file mode 100644
index 000000000000..88a9c0f32b21
--- /dev/null
+++ b/arch/unicore32/include/asm/suspend.h
@@ -0,0 +1,30 @@
+/*
+ * linux/arch/unicore32/include/asm/suspend.h
+ *
+ * Code specific to PKUnity SoC and UniCore ISA
+ *
+ * Copyright (C) 2001-2010 GUAN Xue-tao
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __UNICORE_SUSPEND_H__
+#define __UNICORE_SUSPEND_H__
+
+#ifndef __ASSEMBLY__
+static inline int arch_prepare_suspend(void) { return 0; }
+
+#include <asm/ptrace.h>
+
+struct swsusp_arch_regs {
+ struct cpu_context_save cpu_context; /* cpu context */
+#ifdef CONFIG_UNICORE_FPU_F64
+ struct fp_state fpstate __attribute__((aligned(8)));
+#endif
+};
+#endif
+
+#endif /* __UNICORE_SUSPEND_H__ */
+