Re: [PATCH] devfreq: Use lockdep asserts instead of manual checks for locked mutex

2020-05-12 Thread Chanwoo Choi
Hi Krzysztof, On 5/12/20 3:41 PM, Krzysztof Kozlowski wrote: > 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 funct

[PATCH] devfreq: Use lockdep asserts instead of manual checks for locked mutex

2020-05-11 Thread Krzysztof Kozlowski
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()