aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2012-10-21 17:57:19 -0700
committerLinus Torvalds <[email protected]>2012-10-22 08:50:37 +0300
commit2f0157f13f42800aa3d9017ebb0fb80a65f7b2de (patch)
tree7b2b3299b6ef785790336042ab28c0bffa37debb /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py
parent6f0c0580b70c89094b3422ba81118c7b959c7556 (diff)
char_dev: pin parent kobject
In certain cases (for example when a cdev structure is embedded into another object whose lifetime is controlled by a separate kobject) it is beneficial to tie lifetime of another object to the lifetime of character device so that related object is not freed until after char_dev object is freed. To achieve this let's pin kobject's parent when doing cdev_add() and unpin when last reference to cdev structure is being released. Signed-off-by: Dmitry Torokhov <[email protected]> Acked-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions