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

Commit 83448bf7 authored by Jan Beulich's avatar Jan Beulich Committed by Wim Van Sebroeck
Browse files

watchdog: xen: don't unconditionally enable the watchdog during resume



This was found to be a problem particularly after guest migration.

Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
Reported-by: default avatarWouter de Geus <benv-xensource.com@junerules.com>
Reported-by: default avatarIan Campbell <Ian.Campbell@citrix.com>
Tested-by: default avatarWouter de Geus <benv-xensource.com@junerules.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent ccd4144d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -296,11 +296,18 @@ static void xen_wdt_shutdown(struct platform_device *dev)

static int xen_wdt_suspend(struct platform_device *dev, pm_message_t state)
{
	return xen_wdt_stop();
	typeof(wdt.id) id = wdt.id;
	int rc = xen_wdt_stop();

	wdt.id = id;
	return rc;
}

static int xen_wdt_resume(struct platform_device *dev)
{
	if (!wdt.id)
		return 0;
	wdt.id = 0;
	return xen_wdt_start();
}