]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Wed, 15 Dec 2021 11:13:55 +0000 (20:13 +0900)
commit8c05d9ec7b7e9bf3fbcc60d477d9d5bd24981591
tree227a86421ee10e7941f707b03ac456f88595a127
parent704b536c0c51e74e6d9149410f457947cafaca21
tomoyo: use hwight16() in tomoyo_domain_quota_is_ok()

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>
security/tomoyo/util.c