tomoyo: use hwight16() in tomoyo_domain_quota_is_ok()
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Wed, 15 Dec 2021 11:13:55 +0000 (20:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jan 2022 11:42:33 +0000 (12:42 +0100)
commit80176f65fa28898e7e20077e85989be479392cd2
tree38f42ae832e898eabbf1004f868daf94c167df11
parent3fe6a63b5dbdc0864f01d3171046af03d34ee747
tomoyo: use hwight16() in tomoyo_domain_quota_is_ok()

[ Upstream commit f702e1107601230eec707739038a89018ea3468d ]

hwight16() is much faster. While we are at it, no need to include
"perm =" part into data_race() macro, for perm is a local variable
that cannot be accessed by other threads.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/tomoyo/util.c