mempool: add unlikely and likely hints
authorMikulas Patocka <[email protected]>
Mon, 7 Apr 2014 22:37:35 +0000 (15:37 -0700)
committerLinus Torvalds <[email protected]>
Mon, 7 Apr 2014 23:35:55 +0000 (16:35 -0700)
commiteb9a3c62a0b6064c7f7e5b961ce00c646d21cb78
treefecb27f0ba700b13c2b05364159c4230589b0099
parentda1c67a76f7cf2b3404823d24f9f10fa91aa5dc5
mempool: add unlikely and likely hints

Add unlikely and likely hints to the function mempool_free.  It lays out
the code in such a way that the common path is executed straighforward and
saves a cache line.

Signed-off-by: Mikulas Patocka <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/mempool.c