diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-03-18 03:53:15 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-03-20 07:35:45 -0400 |
commit | c41eba7de133e43ea2c998ccd484059feab200f6 (patch) | |
tree | 1245b2aeb0e324e561b9342ba9fda3aed61073e3 /kernel/timer.c | |
parent | 09e15176ded1faa7bd685b3b5b1213cf0240566e (diff) |
timer: Use variable head instead of &work_list in __run_timers()
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>
Cc: linaro-kernel@lists.linaro.org
Link: http://lkml.kernel.org/r/0d8645a6efc8360c4196c9797d59343abbfdcc5e.1395129136.git.viresh.kumar@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/timer.c')
-rw-r--r-- | kernel/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index 949d74ea0ce4..8e503fec1fba 100644 --- a/kernel/timer.c +++ b/kernel/timer.c | |||
@@ -1192,7 +1192,7 @@ static inline void __run_timers(struct tvec_base *base) | |||
1192 | !cascade(base, &base->tv4, INDEX(2))) | 1192 | !cascade(base, &base->tv4, INDEX(2))) |
1193 | cascade(base, &base->tv5, INDEX(3)); | 1193 | cascade(base, &base->tv5, INDEX(3)); |
1194 | ++base->timer_jiffies; | 1194 | ++base->timer_jiffies; |
1195 | list_replace_init(base->tv1.vec + index, &work_list); | 1195 | list_replace_init(base->tv1.vec + index, head); |
1196 | while (!list_empty(head)) { | 1196 | while (!list_empty(head)) { |
1197 | void (*fn)(unsigned long); | 1197 | void (*fn)(unsigned long); |
1198 | unsigned long data; | 1198 | unsigned long data; |