]> git.karo-electronics.de Git - linux-beck.git/commit
cpufreq: powernv: Replace pr_info with trace print for throttle event
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Tue, 2 Feb 2016 19:41:41 +0000 (01:11 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 5 Feb 2016 01:38:03 +0000 (02:38 +0100)
commitc89f2682a39192433c296bf97b834fd2815a758b
tree86ab2bf249f1601194ac0eb0f2366ea72f5db661
parent0306e481d479a58eff17c27adf213fbb5822946b
cpufreq: powernv: Replace pr_info with trace print for throttle event

Currently we use printk message to notify the throttle event. But this
can flood the console if the cpu is throttled frequently. So replace the
printk with the tracepoint to notify the throttle event. And also events
like throttle below nominal frequency and OCC_RESET are reduced to
pr_warn/pr_warn_once as pointed by MFG to not mark them as critical
messages. This patch adds 'throttle_reason' to struct chip to store the
throttle reason.

Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/powernv-cpufreq.c