CHROMIUM: low_mem: log low memory notification with rate limit

Logging low memory notification for debugging the latency between kernel
detected low memory and user got low memory notification. Remove the
lowest anonymous memory condition and limit the logging to once per
second.

BUG=chromium:874000
TEST=check kernel log in low memory situation

Change-Id: I9ee8ad670242f2f25d04c2c3f4c00bdcf0e1e777
Signed-off-by: Kuo-Hsin Yang <vovoy@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1175594
Commit-Ready: Vovo Yang <vovoy@chromium.org>
Tested-by: Vovo Yang <vovoy@chromium.org>
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1183017
Reviewed-by: Vovo Yang <vovoy@chromium.org>
2 files changed