aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorXishi Qiu <[email protected]>2013-02-22 16:34:00 -0800
committerLinus Torvalds <[email protected]>2013-02-23 17:50:15 -0800
commitfa8dd8a92dccc1b29cefd7f51334285d6ed35281 (patch)
tree3fcb74a3164d9f6f9cfed8c81b526916cf2bbdfb /tools/perf/scripts/python
parent0ebff32c3637e0ed551c017eb9599ac108ab36aa (diff)
memory-failure: do code refactor of soft_offline_page()
There are too many return points randomly intermingled with some "goto done" return points. So adjust the function structure, one for the success path, the other for the failure path. Use atomic_long_inc instead of atomic_long_add. Signed-off-by: Xishi Qiu <[email protected]> Signed-off-by: Jiang Liu <[email protected]> Suggested-by: Andrew Morton <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Wanpeng Li <[email protected]> Cc: Andi Kleen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions