Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
pm-check.c File Reference
#include <linux/kernel.h>
#include <linux/suspend.h>
#include <linux/init.h>
#include <linux/crc32.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <plat/pm.h>

Go to the source code of this file.

Macros

#define CHECK_CHUNKSIZE   (CONFIG_SAMSUNG_PM_CHECK_CHUNKSIZE * 1024)
 

Typedefs

typedef u32 *( run_fn_t )(struct resource *ptr, u32 *arg)
 

Functions

void s3c_pm_check_prepare (void)
 
void s3c_pm_check_store (void)
 
void s3c_pm_check_restore (void)
 
void s3c_pm_check_cleanup (void)
 

Macro Definition Documentation

#define CHECK_CHUNKSIZE   (CONFIG_SAMSUNG_PM_CHECK_CHUNKSIZE * 1024)

Definition at line 38 of file pm-check.c.

Typedef Documentation

typedef u32*( run_fn_t)(struct resource *ptr, u32 *arg)

Definition at line 43 of file pm-check.c.

Function Documentation

void s3c_pm_check_cleanup ( void  )

s3c_pm_check_cleanup() - free memory resources

Free the resources that where allocated by the suspend memory check code. We do this separately from the s3c_pm_check_restore() function as we cannot call any functions that might sleep during that resume.

Definition at line 232 of file pm-check.c.

void s3c_pm_check_prepare ( void  )

Definition at line 95 of file pm-check.c.

void s3c_pm_check_restore ( void  )

s3c_pm_check_restore() - memory check called on resume

check the CRCs after the restore event and free the memory used to hold them

Definition at line 218 of file pm-check.c.

void s3c_pm_check_store ( void  )

Definition at line 132 of file pm-check.c.