Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c548f395 authored by Alex Ng's avatar Alex Ng Committed by Greg Kroah-Hartman
Browse files

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: default avatarAlex Ng <alexng@messages.microsoft.com>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7b6e54b5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1655,6 +1655,7 @@ static int balloon_probe(struct hv_device *dev,
	}

	dm_device.state = DM_INITIALIZED;
	last_post_time = jiffies;

	return 0;