aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorAnton Blanchard <[email protected]>2011-11-30 15:46:45 +0000
committerBenjamin Herrenschmidt <[email protected]>2011-12-08 14:22:54 +1100
commit120a52c388fb29105fdfd3f27efc776e99f7b50e (patch)
tree428fa9916b85660cbd84d4722724c245c1bda0c3 /tools/perf/scripts/python/syscall-counts.py
parent7cf82b1b65833f207f55bb6dea32488f558b200b (diff)
powerpc/nvram: Add spinlock to oops_to_nvram to prevent oops in compression code.
When issuing a system reset we almost always oops in the oops_to_nvram code because multiple CPUs are using the deflate work area. Add a spinlock to protect it. To play it safe I'm using trylock to avoid locking up if the NVRAM code oopses. This means we might miss multiple CPUs oopsing at exactly the same time but I think it's best to play it safe for now. Once we are happy with the reliability we can change it to a full spinlock. Signed-off-by: Anton Blanchard <[email protected]> Acked-by: Jim Keniston <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions