Initial Samsung AT&T Galaxy S4 (SGH-I337M) source release
/drivers/staging/android/lowmemorykiller.c
blob:c6325fad406d895b67e783666ccb4d48d8a0855d -> blob:c6dfcb5876e1d0ac39767caf3b80ce5dd1e02c1b
--- drivers/staging/android/lowmemorykiller.c
+++ drivers/staging/android/lowmemorykiller.c
@@ -50,7 +50,7 @@
#include <linux/freezer.h>
#include <asm/atomic.h>
-#define MIN_FREESWAP_PAGES 2048 /* 8MB */
+#define MIN_FREESWAP_PAGES 8192 /* 32MB */
#define MIN_RECLAIM_PAGES 512 /* 2MB */
#define MIN_CSWAP_INTERVAL (10*HZ) /* 10 senconds */
@@ -395,6 +395,12 @@ inline void cancel_soft_reclaim(void)
atomic_set(&s_reclaim.need_to_reclaim, 0);
}
+int get_soft_reclaim_status(void)
+{
+ int kcompcache_running = atomic_read(&s_reclaim.kcompcached_running);
+ return kcompcache_running;
+}
+
static int soft_reclaim(void)
{
int nid;