lowmem-monitor: Split up lowmem-monitor feature from lowmem module 93/287593/8
authorSangYoun Kwak <sy.kwak@samsung.com>
Wed, 1 Feb 2023 05:27:53 +0000 (14:27 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Thu, 2 Feb 2023 09:01:00 +0000 (18:01 +0900)
commit921cd8aa519ede5c966b76765c8f6071c738f82d
tree87997c806999f36167b5f0bd124cf6b8b755ad99
parentbd0f53f8a992ee323eb2c60c6b1eb603bc2e520e
lowmem-monitor: Split up lowmem-monitor feature from lowmem module

The lowmem-monitor.c was created by extracting the monitor feature from
lowmem.c. (The handler of lowmem pressure)
    * Newly created: lowmem-monitor.c, lowmem-monitor.h
    * "lowmem_monitor_pressure_initialize" function of
      lowmem-monitor.c initializes the handler for lowmem pressure.
    * Symbols used only in lowmem-monitor.c were moved from lowmem.c to
      lowmem-monitor.c.
    * The functions used in both lowmem-monitor.c and lowmem.c remain in
      lowmem.c and were changed to 'non-static' functions.

Change-Id: I26bad0c629b74e8261393d4f7a1d5ce60a9215ab
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
src/resource-limiter/memory/lowmem-monitor.c [new file with mode: 0644]
src/resource-limiter/memory/lowmem-monitor.h [new file with mode: 0644]
src/resource-limiter/memory/lowmem.c
src/resource-limiter/memory/lowmem.h