From: Youngtae Lee Date: Mon, 18 Jun 2018 07:49:28 +0000 (+0900) Subject: samsung: Change print level for emc and cpuhp X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=81e9fdb4dd7e6d262ac13a4a8bfe6ae764f4c6ae;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git samsung: Change print level for emc and cpuhp Change-Id: Ifd39e1c4d7aaabd0f83cdba83fd3b0c851b7df7e Signed-off-by: Youngtae Lee --- diff --git a/drivers/soc/samsung/exynos-cpuhp.c b/drivers/soc/samsung/exynos-cpuhp.c index 3233f623b94a..8b9b75f3d54f 100644 --- a/drivers/soc/samsung/exynos-cpuhp.c +++ b/drivers/soc/samsung/exynos-cpuhp.c @@ -15,6 +15,7 @@ #include #include #include +#include #include @@ -316,7 +317,11 @@ static void cpuhp_print_debug_info(struct cpumask online_cpus, int fast_hp) scnprintf(pre_buf, sizeof(pre_buf), "%*pbl", cpumask_pr_args(&cpuhp.online_cpus)); scnprintf(new_buf, sizeof(new_buf), "%*pbl", cpumask_pr_args(&online_cpus)); - pr_info("%s: %s -> %s fast_hp=%d\n", __func__, pre_buf, new_buf, fast_hp); + dbg_snapshot_printk("%s: %s -> %s fast_hp=%d\n", __func__, pre_buf, new_buf, fast_hp); + + /* print cpu control information */ + if (cpuhp.debug) + pr_info("%s: %s -> %s fast_hp=%d\n", __func__, pre_buf, new_buf, fast_hp); } /* @@ -340,10 +345,7 @@ static int cpuhp_do(int fast_hp) } online_cpus = cpuhp_get_online_cpus(); - - /* print cpu control information */ -// if (cpuhp.debug) - cpuhp_print_debug_info(online_cpus, fast_hp); + cpuhp_print_debug_info(online_cpus, fast_hp); /* if there is no mask change, skip */ if (cpumask_equal(&cpuhp.online_cpus, &online_cpus)) diff --git a/drivers/soc/samsung/exynos-emc.c b/drivers/soc/samsung/exynos-emc.c index 0f305f5834be..824a6a04f8b1 100644 --- a/drivers/soc/samsung/exynos-emc.c +++ b/drivers/soc/samsung/exynos-emc.c @@ -87,6 +87,7 @@ struct emc { struct emc_mode *cur_mode; /* current mode */ struct emc_mode *req_mode; /* requested mode */ struct emc_mode *user_mode; /* user requesting mode */ + unsigned int in_progress; struct cpumask heavy_cpus; /* cpus need to boost */ struct cpumask busy_cpus; /* cpus need to online */ /* loadsum of boostable and trigger domain */ @@ -566,6 +567,7 @@ static int emc_do_mode_change(void *data) break; spin_lock_irqsave(&emc_lock, flags); + emc.in_progress = 1; event = emc_clear_event(); trace_emc_do_mode_change(emc.cur_mode->name, @@ -577,8 +579,9 @@ static int emc_do_mode_change(void *data) /* request mode change */ exynos_cpuhp_request("EMC", emc.cur_mode->cpus, emc.ctrl_type); - pr_info("EMC_MODE: %s (cpus%d)\n", emc.cur_mode->name, - cpumask_weight(&emc.cur_mode->cpus)); + dbg_snapshot_printk("EMC: mode change finished %s (cpus%d)\n", + emc.cur_mode->name, cpumask_weight(&emc.cur_mode->cpus)); + emc.in_progress = 0; } return 0;