]> git.itanic.dy.fi Git - linux-stable/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)
commitf702e1107601230eec707739038a89018ea3468d
tree227a86421ee10e7941f707b03ac456f88595a127
parent04e57a2d952bbd34bc45744e72be3eecdc344294
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