commit | eb9a3c62a0b6064c7f7e5b961ce00c646d21cb78 | [log] [tgz] |
---|---|---|
author | Mikulas Patocka <mpatocka@redhat.com> | Mon Apr 07 15:37:35 2014 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Mon Apr 07 16:35:55 2014 -0700 |
tree | fecb27f0ba700b13c2b05364159c4230589b0099 | |
parent | da1c67a76f7cf2b3404823d24f9f10fa91aa5dc5 [diff] |
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 <mpatocka@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>