[PATCH] branch profiling on my nehalem machine showed 99% incorrectbranch hints:

From: Tim Blechmann
Date: Mon Nov 30 2009 - 12:59:54 EST


i have regenerated the patch for tip/tip ...

--
28459 7678524 99 __cache_alloc_node slab.c 3551

Discussion on lkml [1] led to the solution to remove this hint.

[1] http://patchwork.kernel.org/patch/63517/

Signed-off-by: Tim Blechmann <tim@xxxxxxxxxx>
---
mm/slab.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/mm/slab.c b/mm/slab.c
index 7dfa481..0d4b731 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3306,7 +3306,7 @@ __cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid,
cache_alloc_debugcheck_before(cachep, flags);
local_irq_save(save_flags);

- if (unlikely(nodeid == -1))
+ if (nodeid == -1)
nodeid = numa_node_id();

if (unlikely(!cachep->nodelists[nodeid])) {

Attachment: signature.asc
Description: OpenPGP digital signature