diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-10-14 11:38:47 -0700 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-10-22 12:57:33 -0700 |
commit | 403a85ff001710bb92689790b9a5c1c80e4b37a6 (patch) | |
tree | bc327eeea8c57f7f395a442671260ccda981e799 | |
parent | 3654581e47adc07072aebe239818485b68ea04f0 (diff) | |
download | linux-403a85ff001710bb92689790b9a5c1c80e4b37a6.tar.bz2 |
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>
-rw-r--r-- | drivers/char/hvc_xen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/hvc_xen.c b/drivers/char/hvc_xen.c index 60446f82a3fc..6b8e6d18a8e6 100644 --- a/drivers/char/hvc_xen.c +++ b/drivers/char/hvc_xen.c @@ -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; } |