vmpressure : improve VIP app register process 96/59196/7
authorKichan Kwon <k_c.kwon@samsung.com>
Thu, 11 Feb 2016 09:20:23 +0000 (18:20 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Wed, 17 Feb 2016 03:04:05 +0000 (12:04 +0900)
commit71d7d6c283d48bed69d5412a0abd55f89bf5b5c5
tree80854e1e3ba423086b7c15ebcd215ca7dee40b78
parentedfc5d76965fbfa7d4789ac2998158cf8ab8c8cc
vmpressure : improve VIP app register process

- To convert appname to pid, existing code opens cmdline file and match appname.
 However, this process is file operation, so it causes performance degradation.

- To decrease file operation, (appname,pid) array is maken before conversion.
 By using this array, we don't have to access cmdline file many times.

Change-Id: I2de243a5ef93615288907cdd6eb848f8b15e9be1
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/memory/vmpressure-lowmem-handler.c