]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: Replace pr_warn() with pr_warn_once() in user_space_bind()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 5 Nov 2021 16:31:54 +0000 (17:31 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 5 Nov 2021 16:47:14 +0000 (17:47 +0100)
commit5607841f46de9288cbe3dee1c415366f5184d7a2
treee01ecb504294f101e1b5f2db90dc843d19e40fde
parenta70a13f3b99b37a237d0c037f6e5a743d89c56dd
thermal: Replace pr_warn() with pr_warn_once() in user_space_bind()

Use pr_warn_once() instead of pr_warn() to print the user space
governor deprecation message in user_space_bind() to reduce the
kernel log noise.

Fixes: 8350e114f58c ("thermal/core: Make the userspace governor deprecated")
Reported-by: Linus Torvalds <torvalds@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/gov_user_space.c