diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-12-12 03:24:34 +0300 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-03-08 16:19:54 +0300 |
commit | aa8aba6944203a17a7e941b42d8415153c649660 (patch) | |
tree | 83b96dda96383f02c2c7be746e3e71e183e9271d /arch/arm/plat-s3c/include | |
parent | 663a83048c602d5176c23489b4e29598d753e42b (diff) | |
download | linux-aa8aba6944203a17a7e941b42d8415153c649660.tar.xz |
[ARM] S3C: Do not kmalloc/kfree during inner suspend code.
The PM CRC checking code kmallocs an area to save a set of
CRC values during suspend. This triggers a warning due to the
call of a function that might sleep whilst the system is not
in a valid state to do so.
Move the allocation and free to points in the suspend and resume
process where they can call a function that might-sleep.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c/include')
-rw-r--r-- | arch/arm/plat-s3c/include/plat/pm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c/include/plat/pm.h b/arch/arm/plat-s3c/include/plat/pm.h index c27b8cf5d891..5ee26da27028 100644 --- a/arch/arm/plat-s3c/include/plat/pm.h +++ b/arch/arm/plat-s3c/include/plat/pm.h @@ -129,10 +129,12 @@ extern void s3c_pm_dbg(const char *msg, ...); #ifdef CONFIG_S3C2410_PM_CHECK extern void s3c_pm_check_prepare(void); extern void s3c_pm_check_restore(void); +extern void s3c_pm_check_cleanup(void); extern void s3c_pm_check_store(void); #else #define s3c_pm_check_prepare() do { } while(0) #define s3c_pm_check_restore() do { } while(0) +#define s3c_pm_check_cleanup() do { } while(0) #define s3c_pm_check_store() do { } while(0) #endif |