--- a/arch/arm/mach-msm/msm_mpdecision.c
+++ b/arch/arm/mach-msm/msm_mpdecision.c
@@ -246,11 +246,15 @@ static void msm_mpdec_work_thread(struct
cpu_down(cpu);
per_cpu(msm_mpdec_cpudata, cpu).online = false;
on_time = ktime_to_ms(ktime_get()) - per_cpu(msm_mpdec_cpudata, cpu).on_time;
+#if DEBUG
pr_info(MPDEC_TAG"CPU[%d] on->off | Mask=[%d%d%d%d] | time online: %llu\n",
cpu, cpu_online(0), cpu_online(1), cpu_online(2), cpu_online(3), on_time);
+#endif
} else if (per_cpu(msm_mpdec_cpudata, cpu).online != cpu_online(cpu)) {
+#if DEBUG
pr_info(MPDEC_TAG"CPU[%d] was controlled outside of mpdecision! | pausing [%d]ms\n",
cpu, msm_mpdec_tuners_ins.pause);
+#endif
msleep(msm_mpdec_tuners_ins.pause);
was_paused = true;
}
@@ -263,11 +267,15 @@ static void msm_mpdec_work_thread(struct
cpu_up(cpu);
per_cpu(msm_mpdec_cpudata, cpu).online = true;
per_cpu(msm_mpdec_cpudata, cpu).on_time = ktime_to_ms(ktime_get());
+#if DEBUG
pr_info(MPDEC_TAG"CPU[%d] off->on | Mask=[%d%d%d%d]\n",
cpu, cpu_online(0), cpu_online(1), cpu_online(2), cpu_online(3));
+#endif
} else if (per_cpu(msm_mpdec_cpudata, cpu).online != cpu_online(cpu)) {
+#if DEBUG
pr_info(MPDEC_TAG"CPU[%d] was controlled outside of mpdecision! | pausing [%d]ms\n",
cpu, msm_mpdec_tuners_ins.pause);
+#endif
msleep(msm_mpdec_tuners_ins.pause);
was_paused = true;
}
@@ -701,4 +709,4 @@ void msm_mpdec_exit(void)
destroy_workqueue(msm_mpdec_workq);
}
-MODULE_DESCRIPTION("Kernel based MPDECISION (C) 2011-12 Chad Goodman");
+MODULE_DESCRIPTION("Kernel based MPDECISION (C) 2011-12 Chad Goodman");