1 Patch by: Nathan Zimmer <nzimmer@sgi.com>
3 Fixes a regression in the commit
4 "timer_list: Convert timer list to be a proper seq_file" which causes
5 /proc/timer_list to return an infinite amount of data
8 --- a/kernel/time/timer_list.c
9 +++ b/kernel/time/timer_list.c
10 @@ -305,24 +305,26 @@ static void *timer_list_start(struct seq
13 iter->now = ktime_to_ns(ktime_get());
14 - } else if (iter->cpu >= nr_cpu_ids) {
16 + iter->cpu = cpumask_next(iter->cpu, cpu_online_mask);
17 + if (iter->cpu >= nr_cpu_ids) {
18 #ifdef CONFIG_GENERIC_CLOCKEVENTS
19 - if (!iter->second_pass) {
21 - iter->second_pass = true;
24 + if (!iter->second_pass) {
26 + iter->second_pass = true;
39 static void *timer_list_next(struct seq_file *file, void *v, loff_t *offset)
41 - struct timer_list_iter *iter = file->private;
42 - iter->cpu = cpumask_next(iter->cpu, cpu_online_mask);
44 return timer_list_start(file, offset);