Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c521a53 authored by Vikram Mulukutla's avatar Vikram Mulukutla
Browse files

sched: energy: Remove #define DEBUG



Production kernels should not be printing debug level logging.
Remove #define DEBUG from energy.c. Convert a an appropriately
small subset of messages into _info - these are printed just
once during boot and convey important device information that
can save a lot of teams and customers a lot of effort.

Change-Id: Idd0bb043b65c302682baa84057bb7cd55c10b425
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 32850e8e
Loading
Loading
Loading
Loading
+14 −3
Original line number Diff line number Diff line
@@ -18,8 +18,6 @@
 */
#define pr_fmt(fmt) "sched-energy: " fmt

#define DEBUG

#include <linux/gfp.h>
#include <linux/of.h>
#include <linux/printk.h>
@@ -218,8 +216,9 @@ static int sched_energy_probe(struct platform_device *pdev)
		sge_l0 = sge_array[cpu][SD_LEVEL0];
		if (sge_l0 && sge_l0->nr_cap_states > 0) {
			int i;
			int ncapstates = sge_l0->nr_cap_states;

			for (i = 0; i < sge_l0->nr_cap_states; i++) {
			for (i = 0; i < ncapstates; i++) {
				int sd_level;
				unsigned long freq, cap;

@@ -246,8 +245,20 @@ static int sched_energy_probe(struct platform_device *pdev)
					cpu, freq, sge_l0->cap_states[i].cap,
					sge_l0->cap_states[i].power);
			}

			dev_info(&pdev->dev,
				"cpu=%d eff=%d [freq=%ld cap=%ld power_d0=%ld] -> [freq=%ld cap=%ld power_d0=%ld]\n",
				cpu, efficiency,
				sge_l0->cap_states[0].frequency,
				sge_l0->cap_states[0].cap,
				sge_l0->cap_states[0].power,
				sge_l0->cap_states[ncapstates - 1].frequency,
				sge_l0->cap_states[ncapstates - 1].cap,
				sge_l0->cap_states[ncapstates - 1].power
				);
		}


		dev_dbg(&pdev->dev,
			"cpu=%d efficiency=%d max_frequency=%ld max_efficiency=%d cpu_max_capacity=%ld\n",
			cpu, efficiency, max_frequencies[cpu], max_efficiency,