aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
diff options
context:
space:
mode:
authorVladimir Davydov <[email protected]>2014-10-20 15:50:29 +0400
committerTejun Heo <[email protected]>2014-10-27 11:15:26 -0400
commit8447a0fee974433f7e0035fd30e1edecf00e014f (patch)
treeb670f05f0983a7705c58a97c4122f4963e4f840a /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
parentcac7f2429872d3733dc3f9915857b1691da2eb2f (diff)
cpuset: convert callback_mutex to a spinlock
The callback_mutex is only used to synchronize reads/updates of cpusets' flags and cpu/node masks. These operations should always proceed fast so there's no reason why we can't use a spinlock instead of the mutex. Converting the callback_mutex into a spinlock will let us call cpuset_zone_allowed_softwall from atomic context. This, in turn, makes it possible to simplify the code by merging the hardwall and asoftwall checks into the same function, which is the business of the next patch. Suggested-by: Zefan Li <[email protected]> Signed-off-by: Vladimir Davydov <[email protected]> Acked-by: Christoph Lameter <[email protected]> Acked-by: Zefan Li <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions