]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
cpufreq: powernv: Increase the verbosity of OCC console messages
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Thu, 27 Aug 2015 09:11:44 +0000 (14:41 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 1 Sep 2015 13:51:25 +0000 (15:51 +0200)
Modify the OCC reset/load/active event message to make it clearer for
the user to understand the event and effect of the event.

Suggested-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@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

index 546e056e416d471ade90dafee49cfa5b51e43ff8..64994e10638e4595c98248a5671a4201523c77be 100644 (file)
@@ -465,6 +465,7 @@ static int powernv_cpufreq_occ_msg(struct notifier_block *nb,
        switch (omsg.type) {
        case OCC_RESET:
                occ_reset = true;
+               pr_info("OCC (On Chip Controller - enforces hard thermal/power limits) Resetting\n");
                /*
                 * powernv_cpufreq_throttle_check() is called in
                 * target() callback which can detect the throttle state
@@ -474,12 +475,12 @@ static int powernv_cpufreq_occ_msg(struct notifier_block *nb,
                 */
                if (!throttled) {
                        throttled = true;
-                       pr_crit("CPU Frequency is throttled\n");
+                       pr_crit("CPU frequency is throttled for duration\n");
                }
-               pr_info("OCC: Reset\n");
+
                break;
        case OCC_LOAD:
-               pr_info("OCC: Loaded\n");
+               pr_info("OCC Loading, CPU frequency is throttled until OCC is started\n");
                break;
        case OCC_THROTTLE:
                omsg.chip = be64_to_cpu(msg->params[1]);
@@ -488,7 +489,7 @@ static int powernv_cpufreq_occ_msg(struct notifier_block *nb,
                if (occ_reset) {
                        occ_reset = false;
                        throttled = false;
-                       pr_info("OCC: Active\n");
+                       pr_info("OCC Active, CPU frequency is no longer throttled\n");
 
                        for (i = 0; i < nr_chips; i++) {
                                chips[i].restore = true;