mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] timer: use variable 'head' instead of '&work_list' in __run_timers()
@ 2014-03-18  7:53 Viresh Kumar
  2014-03-20 11:39 ` [tip:timers/core] timer: Use variable head instead of &work_list " tip-bot for Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Viresh Kumar @ 2014-03-18  7:53 UTC (permalink / raw)
  To: tglx; +Cc: linaro-kernel, linux-kernel, Viresh Kumar

We already have a variable 'head' that points to '&work_list', and so we should
use that instead wherever possible.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 kernel/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/timer.c b/kernel/timer.c
index 6394fb5..1ef3de1 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1192,7 +1192,7 @@ static inline void __run_timers(struct tvec_base *base)
 					!cascade(base, &base->tv4, INDEX(2)))
 			cascade(base, &base->tv5, INDEX(3));
 		++base->timer_jiffies;
-		list_replace_init(base->tv1.vec + index, &work_list);
+		list_replace_init(base->tv1.vec + index, head);
 		while (!list_empty(head)) {
 			void (*fn)(unsigned long);
 			unsigned long data;
-- 
1.7.12.rc2.18.g61b472e


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-20 11:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-18  7:53 [PATCH] timer: use variable 'head' instead of '&work_list' in __run_timers() Viresh Kumar
2014-03-20 11:39 ` [tip:timers/core] timer: Use variable head instead of &work_list " tip-bot for Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome