#ifndef _ASM_GENERIC_BITOPS_BUILTIN___FLS_H_ #define _ASM_GENERIC_BITOPS_BUILTIN___FLS_H_ /** * __fls - find last (most-significant) set bit in a long word * @word: the word to search * * Undefined if no set bit exists, so code should check against 0 first. */ static __always_inline unsigned long __fls(unsigned long word) { return (sizeof(word) * 8) - 1 - __builtin_clzl(word); } #endif xt.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
path: root/Documentation/arm
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2016-03-24 13:01:28 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-09 03:08:40 +0200
commit60438d9a1ef4176d79739efadee122afe92904b8 (patch)
tree6dbb238ffd64d75bb487e10e47557ef7e4ba6e10 /Documentation/arm
parent9735a22799b9214d17d3c231fe377fc852f042e9 (diff)
tools/power/acpi: close file only if it is open
The logic on the test for a valid fd to close is incorrect. This was just a mistake and was pointed out by Colin Ian King. Link: https://patchwork.kernel.org/patch/8620201/ Original-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/arm')