diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-11-05 17:31:54 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-11-05 17:47:14 +0100 |
commit | 567af705206564946f724cf752ff36cb7a2935e3 (patch) | |
tree | e01ecb504294f101e1b5f2db90dc843d19e40fde /drivers/thermal/gov_user_space.c | |
parent | thermal: Fix NULL pointer dereferences in of_thermal_ functions (diff) | |
download | linux-567af705206564946f724cf752ff36cb7a2935e3.tar.xz linux-567af705206564946f724cf752ff36cb7a2935e3.zip |
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: 0275c9fb0eff ("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>
Diffstat (limited to 'drivers/thermal/gov_user_space.c')
-rw-r--r-- | drivers/thermal/gov_user_space.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/gov_user_space.c b/drivers/thermal/gov_user_space.c index f4fe050e1cbc..64a18e354a20 100644 --- a/drivers/thermal/gov_user_space.c +++ b/drivers/thermal/gov_user_space.c @@ -17,8 +17,8 @@ static int user_space_bind(struct thermal_zone_device *tz) { - pr_warn("Userspace governor deprecated: use thermal netlink " \ - "notification instead\n"); + pr_warn_once("Userspace governor deprecated: use thermal netlink " \ + "notification instead\n"); return 0; } |