From: Alex Ng Date: Sun, 6 Aug 2017 20:12:55 +0000 (-0700) Subject: Drivers: hv: balloon: Initialize last_post_time on startup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c548f3957efa57b6f1a1f4c90013232f6f488682;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Drivers: hv: balloon: Initialize last_post_time on startup When left uninitialized, this sometimes fails the following check in post_status(): if (!time_after(now, (last_post_time + HZ))) { return; } This causes unnecessary delays in reporting memory pressure to host after booting up. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 7cec4826b011..db0e6652d7ef 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c @@ -1655,6 +1655,7 @@ static int balloon_probe(struct hv_device *dev, } dm_device.state = DM_INITIALIZED; + last_post_time = jiffies; return 0;