mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 02:34:23 +08:00
7f8998c7ae
The different architectures used their own (and different) declarations: extern __visible const void __nosave_begin, __nosave_end; extern const void __nosave_begin, __nosave_end; extern long __nosave_begin, __nosave_end; Consolidate them using the first variant in <asm/sections.h>. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Russell King <linux@arm.linux.org.uk> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Guan Xuetao <gxt@mprc.pku.edu.cn> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
41 lines
986 B
C
41 lines
986 B
C
/*
|
|
* linux/arch/unicore/include/mach/pm.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 __PUV3_PM_H__
|
|
#define __PUV3_PM_H__
|
|
|
|
#include <linux/suspend.h>
|
|
|
|
struct puv3_cpu_pm_fns {
|
|
int save_count;
|
|
void (*save)(unsigned long *);
|
|
void (*restore)(unsigned long *);
|
|
int (*valid)(suspend_state_t state);
|
|
void (*enter)(suspend_state_t state);
|
|
int (*prepare)(void);
|
|
void (*finish)(void);
|
|
};
|
|
|
|
extern struct puv3_cpu_pm_fns *puv3_cpu_pm_fns;
|
|
|
|
/* sleep.S */
|
|
extern void puv3_cpu_suspend(unsigned int);
|
|
|
|
extern void puv3_cpu_resume(void);
|
|
|
|
extern int puv3_pm_enter(suspend_state_t state);
|
|
|
|
/* Defined in hibernate_asm.S */
|
|
extern int restore_image(pgd_t *resume_pg_dir, struct pbe *restore_pblist);
|
|
|
|
extern struct pbe *restore_pblist;
|
|
#endif
|