summaryrefslogtreecommitdiff
path: root/include/net/netns
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-05-12 09:41:58 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2020-05-28 12:02:40 +0300
commit8fc0e48e0faefef5064f3cb803d3d12314e16ec4 (patch)
tree041f85f6905a8c1931d86908df6cbf65c321fbe4 /include/net/netns
parent48bbf6375131155d329eb8e06ae962e27cbba032 (diff)
downloadlinux-8fc0e48e0faefef5064f3cb803d3d12314e16ec4.tar.xz
PM / devfreq: Use lockdep asserts instead of manual checks for locked mutex
Instead of warning when mutex_is_locked(), just use the lockdep framework. The code is smaller and checks could be disabled for production environments (it is useful only during development). Put asserts at beginning of function, even before validating arguments. The behavior of update_devfreq() is now changed because lockdep assert will only print a warning, not return with EINVAL. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'include/net/netns')
0 files changed, 0 insertions, 0 deletions