diff options
author | Srivatsa S. Bhat <[email protected]> | 2011-12-06 23:17:51 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2011-12-08 23:21:01 +0100 |
commit | 467de1fc67d1bd2954eaac7019c564f28fa2b6a5 (patch) | |
tree | 246d0ff1072bf5f51497e764564911e9ea9f77f3 /tools/perf | |
parent | d310310cbff18ec385c6ab4d58f33b100192a96a (diff) |
PM / Freezer: Remove the "userspace only" constraint from freezer[_do_not]_count()
At present, the functions freezer_count() and freezer_do_not_count()
impose the restriction that they are effective only for userspace processes.
However, now, these functions have found more utility than originally
intended by the commit which introduced it: ba96a0c8 (freezer:
fix vfork problem). And moreover, even the vfork issue actually does not
need the above restriction in these functions.
So, modify these functions to make them work even for kernel threads, so
that they can be used at other places in the kernel, where the userspace
restriction doesn't apply.
Suggested-by: Oleg Nesterov <[email protected]>
Suggested-by: Tejun Heo <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Reviewed-by: Oleg Nesterov <[email protected]>
Signed-off-by: Srivatsa S. Bhat <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions