[PATCH 2.6.26-rc3 : schedule] remove unlikely macros in workqueue.c/queue_delayed_work_on

From: youquan_song
Date: Thu May 29 2008 - 03:02:59 EST


cpufreq_ondemand governor call queue_delayed_work_on with entry parameter
"cpu" every sample rate(every logical cpu during 20ms).check the value of
"cpu","cpu>=0" condition meeting rate is over than 90%.

This patch remove the unlikely macros to benefit kernel schedule and
reader comprehension.

Signed-off-by: Youquan Song <youquan.song@xxxxxxxxx>
---
workqueue.c | 2++++++
1 file changed, 1 insertions(+), 1 deletions(-)

--- linux-2.6/kernel/workqueue.c 2008-05-13 10:10:11.000000000 -0400
+++ linux-2.6-new/kernel/workqueue.c 2008-05-29 09:46:16.000000000 -0400
@@ -230,7 +230,7 @@
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);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/