[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1740.172.16.180.81.1212044570.squirrel@linux.intel.com>
Date: Thu, 29 May 2008 00:02:50 -0700 (PDT)
From: youquan_song@...ux.intel.com
To: linux-kernel@...r.kernel.org
Cc: venkatesh.pallipadi@...el.com
Subject: [PATCH 2.6.26-rc3 : schedule] remove unlikely macros in
workqueue.c/queue_delayed_work_on
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@...el.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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists