}
#ifdef CONFIG_PM_RUNTIME
+#if 0
static int mali_runtime_suspend(struct device *device)
{
int ret = 0;
return 0;
}
#endif
+#endif
static struct dev_pm_ops mali_gpu_device_type_pm_ops =
{
.freeze = mali_os_freeze,
.thaw = mali_os_thaw,
.restore = mali_os_restore,
-#ifdef CONFIG_PM_RUNTIME
+#if 0//def CONFIG_PM_RUNTIME
.runtime_suspend = mali_runtime_suspend,
.runtime_resume = mali_runtime_resume,
.runtime_idle = mali_runtime_idle,
static int scaling_mode = MALI_PP_FS_SCALING;
-static unsigned scaling_dbg_level = 1;
+static unsigned scaling_dbg_level = 0;
module_param(scaling_dbg_level, uint, 0644);
MODULE_PARM_DESC(scaling_dbg_level , "scaling debug level");
#ifndef CONFIG_MALI_DVFS
static u32 enable_one_core(void)
{
- printk("meson: one more pp, curent has %d pp cores\n", num_cores_enabled + 1);
+ scalingdbg(2, "meson: one more pp, curent has %d pp cores\n", num_cores_enabled + 1);
return set_mali_rt_clkpp(currentStep, num_cores_enabled + 1, 0);
}
static u32 disable_one_core(void)
{
- printk("meson: disable one pp, current has %d pp cores\n", num_cores_enabled - 1);
+ scalingdbg(2, "meson: disable one pp, current has %d pp cores\n", num_cores_enabled - 1);
return set_mali_rt_clkpp(currentStep, num_cores_enabled - 1, 0);
}
static u32 enable_pp_cores(u32 val)
{
- printk("meson: enable %d pp cores\n", val);
+ scalingdbg(2, "meson: enable %d pp cores\n", val);
return set_mali_rt_clkpp(currentStep, val, 0);
}
#endif
{
#ifndef CONFIG_MALI_DVFS
if (mali_plat == NULL) {
- printk(" Mali platform data is NULL!!!\n");
+ scalingdbg(2, " Mali platform data is NULL!!!\n");
return -1;
}
else
direction = '~';
- printk("[SCALING]%c (%3d-->%3d)@%3d{%3d - %3d}. pp:(%d-->%d)\n",
+ scalingdbg(2, "[SCALING]%c (%3d-->%3d)@%3d{%3d - %3d}. pp:(%d-->%d)\n",
direction,
get_mali_freq(current_idx),
get_mali_freq(next),
}
}
#if LOG_MALI_SCALING
- printk("[nexting..] [LD:%d]-> FS[CRNT:%d LMT:%d NEXT:%d] PP[NUM:%d LMT:%d MD:%d][F:%d]\n",
+ scalingdbg(2, "[nexting..] [LD:%d]-> FS[CRNT:%d LMT:%d NEXT:%d] PP[NUM:%d LMT:%d MD:%d][F:%d]\n",
data->utilization_pp, currentStep, mali_up_limit, decided_fs_idx,
num_cores_enabled, pmali_plat->scale_info.maxpp, *pp_change_flag, change_mode);
#endif