summaryrefslogtreecommitdiffstats
path: root/include/linux/power_supply.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-06 00:51:37 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-02-07 20:01:23 -0500
commit375b38b4214f29109a393ab762d468054bf52354 (patch)
treed57e22648d1e07659db308abdcb8d5b23d63891f /include/linux/power_supply.h
parent4e6ea1440c67de32d7c89aacf233472dfc3bce82 (diff)
downloadblackbird-op-linux-375b38b4214f29109a393ab762d468054bf52354.tar.gz
blackbird-op-linux-375b38b4214f29109a393ab762d468054bf52354.zip
nmi: add generic nmi tracking state
This code adds an in_nmi() macro that uses the current tasks preempt count to track when it is in NMI context. Other parts of the kernel can use this to determine if the context is in NMI context or not. This code was inspired by the -rt patch in_nmi version that was written by Peter Zijlstra, who borrowed that code from Mathieu Desnoyers. Reported-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'include/linux/power_supply.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud