summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/ChangeLog4
-rw-r--r--runtime/print.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 8c15d074..04cad62c 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-15 Frank Ch. Eigler <fche@elastic.org>
+
+ * print.c (_stp_print_flush): Add a likely() marker to the hot path.
+
2006-12-13 Frank Ch. Eigler <fche@elastic.org>
* regs.h (s390x REG_IP): Parenthesize for warning-free builds.
diff --git a/runtime/print.c b/runtime/print.c
index ae220f28..eaea688d 100644
--- a/runtime/print.c
+++ b/runtime/print.c
@@ -76,7 +76,7 @@ void _stp_print_flush (void)
_stp_pbuf *pb = per_cpu_ptr(Stp_pbuf, smp_processor_id());
/* check to see if there is anything in the buffer */
- if (pb->len == 0)
+ if (likely (pb->len == 0))
return;
#ifdef STP_RELAYFS_MERGE