From: Keir Fraser Date: Wed, 19 Dec 2007 09:51:35 +0000 (+0000) Subject: xentrace: Ensure virq gets sent even if we exactly hit the half water mark. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14445^2~122 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2fa391823baa5055b180d947879f4d7cde71e6ea;p=xen.git xentrace: Ensure virq gets sent even if we exactly hit the half water mark. Signed-off-by: Keir Fraser --- diff --git a/xen/common/trace.c b/xen/common/trace.c index bf1d1fe7fa..9af70798bb 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -485,8 +485,8 @@ void __trace_var(u32 event, int cycles, int extra, unsigned char *extra_data) local_irq_restore(flags); /* Notify trace buffer consumer that we've crossed the high water mark. */ - if ( started_below_highwater - && ((buf->prod - buf->cons) > t_buf_highwater) ) + if ( started_below_highwater && + ((buf->prod - buf->cons) >= t_buf_highwater) ) raise_softirq(TRACE_SOFTIRQ); }