mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
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: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
This commit is contained in:
parent
3654581e47
commit
403a85ff00
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user