2009-11-24 11:11:47

by Tim Blechmann

[permalink] [raw]
Subject: [PATCH 5/5] workqueue.c: remove branch hint

branch hint profiling of my nehalem machine, showed 96% incorrect branch
hints:

131609 3840434 96 queue_delayed_work_on workqueue.c 258

Signed-off-by: Tim Blechmann <[email protected]>
---
kernel/workqueue.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 0a98bef..6985ab0 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -255,7 +255,7 @@ int queue_delayed_work_on(int cpu, struct
workqueue_struct *wq,
timer->data = (unsigned long)dwork;
timer->function = delayed_work_timer_fn;
- if (unlikely(cpu >= 0))
+ if (cpu >= 0)
add_timer_on(timer, cpu);
else
add_timer(timer);
--
1.6.4.2



Attachments:
signature.asc (197.00 B)
OpenPGP digital signature