Messages in this thread Patch in this message | | | Date | Thu, 29 May 2008 00:02:50 -0700 (PDT) | Subject | [PATCH 2.6.26-rc3 : schedule] remove unlikely macros in workqueue.c/queue_delayed_work_on | From | youquan_song@linux ... |
| |
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);
| |