zram swap optimizations: added zram swap optimizations for Linux 3.0/3.1

code cherry-picked from Samsung Galaxy Note 2 kernels

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	drivers/staging/android/lowmemorykiller.c
	kernel/power/earlysuspend.c