Skip to content

Commit

Permalink
xen/hvc: only notify if we actually sent something
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Fitzhardinge committed Oct 22, 2010
1 parent 3654581 commit 403a85f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/char/hvc_xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 403a85f

Please sign in to comment.