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

Commit 403a85ff authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge
Browse files

xen/hvc: only notify if we actually sent something



Don't spam dom0/xenconsoled with events unless we've actually added
something to the ring.

Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
parent 3654581e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ static int __write_console(const char *data, int len)
	wmb();			/* write ring before updating pointer */
	intf->out_prod = prod;

	if (sent)
		notify_daemon();
	return sent;
}