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

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
......@@ -74,7 +74,8 @@ static int __write_console(const char *data, int len)
wmb(); /* write ring before updating pointer */
intf->out_prod = prod;
notify_daemon();
if (sent)
notify_daemon();
return sent;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment