]> git.karo-electronics.de Git - karo-tx-linux.git/commit
timer_list: convert timer list to be a proper seq_file
authorNathan Zimmer <nzimmer@sgi.com>
Wed, 20 Feb 2013 02:13:45 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:10 +0000 (16:52 +1100)
commit57a41b28e6f5d8391da63c32036cab2a597c0312
treeac20362ba4b54393fa739d6e345328bbff7d41cd
parent818ceda5e4b1e6481677cfbc0d8644aa3bd50de6
timer_list: convert timer list to be a proper seq_file

When running with 4096 cores attemping to read /proc/timer_list will fail
with an ENOMEM condition.  On a sufficantly large systems the total amount
of data is more then 4mb, so it won't fit into a single buffer.  The
failure can also occur on smaller systems when memory fragmentation is
high as reported by Dave Jones.

Convert /proc/timer_list to a proper seq_file with its own iterator.  This
is a little more complex given that we have to make two passes with two
separate headers.

Signed-off-by: Nathan Zimmer <nzimmer@sgi.com>
Reported-by: Dave Jones <davej@redhat.com>
Cc: John Stultz <johnstul@us.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/time/timer_list.c