summaryrefslogtreecommitdiffstats
path: root/drivers/char/hvc_xen.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-10-14 11:38:47 -0700
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-10-22 12:57:33 -0700
commit403a85ff001710bb92689790b9a5c1c80e4b37a6 (patch)
treebc327eeea8c57f7f395a442671260ccda981e799 /drivers/char/hvc_xen.c
parent3654581e47adc07072aebe239818485b68ea04f0 (diff)
downloadblackbird-op-linux-403a85ff001710bb92689790b9a5c1c80e4b37a6.tar.gz
blackbird-op-linux-403a85ff001710bb92689790b9a5c1c80e4b37a6.zip
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>
Diffstat (limited to 'drivers/char/hvc_xen.c')
-rw-r--r--drivers/char/hvc_xen.c3
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;
}
OpenPOWER on IntegriCloud