lkml.org 
[lkml]   [2008]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 2.6.26-rc3 : schedule] remove unlikely macros in workqueue.c/queue_delayed_work_on
From
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@intel.com>
---
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);



\
 
 \ /
  Last update: 2008-05-29 09:05    [W:0.039 / U:1.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site