From 881a544aecbe70f8b40842abb019cc85f3132632 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Tue, 26 Mar 2019 13:21:45 -0700 Subject: [PATCH] lmkd: set PSI_POLL_PERIOD to 10ms Occasionally we see cases when 40ms polling is still too conservative. Change to 10ms polling period. Since the polling happens only after PSI signal and continues for 1sec this should not affect system performance. Test: lmkd_unit_test Bug: 129358844 Change-Id: Ib759b865b2104be23741fc0eacaa541e22d50dde Signed-off-by: Suren Baghdasaryan --- lmkd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmkd.c b/lmkd.c index 2d3fbfc..2de7378 100644 --- a/lmkd.c +++ b/lmkd.c @@ -110,7 +110,7 @@ */ #define PSI_WINDOW_SIZE_MS 1000 /* Polling period after initial PSI signal */ -#define PSI_POLL_PERIOD_MS 40 +#define PSI_POLL_PERIOD_MS 10 /* Poll for the duration of one window after initial PSI signal */ #define PSI_POLL_COUNT (PSI_WINDOW_SIZE_MS / PSI_POLL_PERIOD_MS)