From 16d5fd9f49ace9af5e030641a4c324ae72002cd6 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 15 Dec 2006 13:25:34 +0000 Subject: 2006-12-15 Frank Ch. Eigler * print.c (_stp_print_flush): Add a likely() marker to the hot path. --- runtime/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/print.c') 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 -- cgit