Commit 567af705 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

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: 0275c9fb ("thermal/core: Make the userspace governor deprecated")
Reported-by: default avatarLinus Torvalds <torvalds@linuxfoundation.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 96cfe050
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
static int user_space_bind(struct thermal_zone_device *tz) static int user_space_bind(struct thermal_zone_device *tz)
{ {
pr_warn("Userspace governor deprecated: use thermal netlink " \ pr_warn_once("Userspace governor deprecated: use thermal netlink " \
"notification instead\n"); "notification instead\n");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment