]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: Add irqtime accounting support
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 9 Sep 2012 17:39:28 +0000 (18:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 15 Sep 2012 20:43:31 +0000 (21:43 +0100)
commita42c362980430be74b77ec8f374964f61062379f
treef49ca2d6f045d49e4cd659a9f8cedb5824481676
parenta67e1ce145785d884b29b17e4d82a6ecd67bb97a
ARM: Add irqtime accounting support

Add support for irq time accounting.  This commit prepares ARM by adding
the call to enable_sched_clock_irqtime() in sched_clock().  We introduce
a new kernel parameter - irqtime - which takes an integer.  -1 for auto,
0 for disabled, and 1 for enabled.  Auto mode selects IRQ accounting if
we have a sched_clock() tick rate greater than 1MHz.

Frederic Weisbecker is working on a patch set which moves the
IRQ_TIME_ACCOUNTING into arch/, so that part is not incorporated into
this patch; this facility becomes available on ARM only when both this
patch and Frederic's patches are merged.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/sched_clock.c