diff options
author | 2014-06-28 08:10:12 -0400 | |
---|---|---|
committer | 2014-06-28 08:10:12 -0400 | |
commit | d630dc4c9adb41e5bd1e06df2dbeaf622469ddd5 (patch) | |
tree | 4dc8afb3469f6bb27f3737b48d398ea4fa10e3e6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | percpu-refcount, aio: use percpu_ref_cancel_init() in ioctx_alloc() (diff) | |
download | linux-dev-d630dc4c9adb41e5bd1e06df2dbeaf622469ddd5.tar.xz linux-dev-d630dc4c9adb41e5bd1e06df2dbeaf622469ddd5.zip |
percpu-refcount: one bit is enough for REF_STATUS
percpu-refcount currently reserves two lowest bits of its percpu
pointer to indicate its state; however, only one bit is used for
PCPU_REF_DEAD.
Simplify it by removing PCPU_STATUS_BITS/MASK and testing
PCPU_REF_DEAD directly. This also allows the compiler to choose a
more efficient instruction depending on the architecture.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Kent Overstreet <kmo@daterainc.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions