From: Tejun Heo Date: Sat, 28 Jun 2014 12:10:12 +0000 (-0400) Subject: percpu-refcount: one bit is enough for REF_STATUS X-Git-Tag: omap-for-v3.17/fixes-against-rc2~191^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d630dc4c9adb41e5bd1e06df2dbeaf622469ddd5;p=pandora-kernel.git 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 Cc: Kent Overstreet Cc: Christoph Lameter --- Reading git-diff-tree failed