Skip to content

Commit

Permalink
thermal: Replace pr_warn() with pr_warn_once() in user_space_bind()
Browse files Browse the repository at this point in the history
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: 0275c9f ("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>
  • Loading branch information
Rafael J. Wysocki committed Nov 5, 2021
1 parent 96cfe05 commit 567af70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/thermal/gov_user_space.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 567af70

Please sign in to comment.