mempool-add-unlikely-and-likely-hints.patch removed from -mm tree
Subsystems (2)
[email protected]
maintainerSubject: [merged] mempool-add-unlikely-and-likely-hints.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 08 Apr 2014 13:47:39 -0700
The patch titled
Subject: mempool: add unlikely and likely hints
has been removed from the -mm tree. Its filename was
mempool-add-unlikely-and-likely-hints.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Mikulas Patocka <[email protected]>
Subject: 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.
---
mm/mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/mempool.c renamed from mm/mempool.c~mempool-add-unlikely-and-likely-hints +2 -2
@@ -304,9 +304,9 @@ void mempool_free(void *element, mempool* ensures that there will be frees which return elements to the * pool waking up the waiters. */ -if (pool->curr_nr < pool->min_nr) { +if (unlikely (pool->curr_nr < pool->min_nr)) {spin_lock_irqsave (&pool->lock, flags); -if (pool->curr_nr < pool->min_nr) { +if (likely (pool->curr_nr < pool->min_nr)) {add_element (pool, element);spin_unlock_irqrestore (&pool->lock, flags);wake_up (&pool->wait);
_
Patches currently in -mm which might be from [email protected] are
origin.patch