On Fri, Jul 11, 2014 at 12:14:25AM +0200, Thomas Hellström wrote:
I agree, however that readability may be more important than the fastpath execution speed gained from this. But in my case not so much that I spontaneously feel like removing all branch prediction hints from the vmwgfx driver.
I'm just saying, let's not add new ones.
There are two rules of thumb for likely/unlikely:
- Don't use it in the drivers/ directory.
- Or don't use it without benchmarking it.
Could you point me to a document or some sort of reference?
http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2012-March...
regards, dan carpenter