From 888d9d3274e01ec1a367917d5f21892ef6c8a359 Mon Sep 17 00:00:00 2001 From: "jy910.yun" Date: Sun, 30 Jun 2013 19:34:39 +0900 Subject: [PATCH] just change the position of define Change-Id: I3d4b37cf8bb9b2d22ee10e544a3df71082d6e673 Signed-off-by: jy910.yun --- src/proc/proc-handler.c | 10 +--------- src/proc/proc-handler.h | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/proc/proc-handler.c b/src/proc/proc-handler.c index 0305a6a..cd62eaa 100644 --- a/src/proc/proc-handler.c +++ b/src/proc/proc-handler.c @@ -27,15 +27,7 @@ #include "core/log.h" #include "core/common.h" #include "core/devices.h" - -#define OOMADJ_SU (-17) -#define OOMADJ_INIT (-16) -#define OOMADJ_FOREGRD_LOCKED (-15) -#define OOMADJ_FOREGRD_UNLOCKED (-10) -#define OOMADJ_BACKGRD_LOCKED (-5) -#define OOMADJ_BACKGRD_UNLOCKED (1) - -#define OOMADJ_APP_LIMIT (-16) +#include "proc-handler.h" #define LIMITED_BACKGRD_NUM 15 #define MAX_BACKGRD_OOMADJ (OOMADJ_BACKGRD_UNLOCKED + LIMITED_BACKGRD_NUM) diff --git a/src/proc/proc-handler.h b/src/proc/proc-handler.h index 2cb6c56..e838631 100644 --- a/src/proc/proc-handler.h +++ b/src/proc/proc-handler.h @@ -15,10 +15,19 @@ */ -#ifndef __SS_PROCMGR_H__ -#define __SS_PROCMGR_H__ +#ifndef __PROC_HANDLER_H__ +#define __PROC_HANDLER_H__ + +#define OOMADJ_SU (-17) +#define OOMADJ_INIT (-16) +#define OOMADJ_FOREGRD_LOCKED (-15) +#define OOMADJ_FOREGRD_UNLOCKED (-10) +#define OOMADJ_BACKGRD_LOCKED (-5) +#define OOMADJ_BACKGRD_UNLOCKED (1) + +#define OOMADJ_APP_LIMIT (-16) int get_app_oomadj(int pid, int *oomadj); int set_app_oomadj(int pid, int new_oomadj); -#endif /* __SS_PROCMGR_H__ */ +#endif /* __PROC_HANDLER_H__ */ -- 2.7.4