]> git.baikalelectronics.ru Git - kernel.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)
commitd6883ffe60c2aa52500fdd3b4a2811fba78c21a3
tree86ab2bf249f1601194ac0eb0f2366ea72f5db661
parentf5df1a7637a00f3a16e44e9da5d7e9c48219d03a
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