Re: [RFC][PATCH] signal: replace !likely with unlikely!

From: Richard Weinberger
Date: Sat Sep 13 2014 - 06:04:48 EST


Am 13.09.2014 04:48, schrieb Li RongQing:
> I did not test, how to test it?

Compare the object files of both variants to find out whether both create
semantically equivalent code and whether the un/likely have an effect.
i.e. objdump -S -d kernel/signal.o
I guess you can just remove the likely as gcc is smart enough to detect the "goto ret;"
as an unlikely taken branch.

Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/