Files
BPI-CM9-Linux/build/patch/kernel/archive/sunxi-6.12/patches.megous/cpufreq-sun50i-Show-detected-CPU-bin-for-easier-debugging.patch

30 lines
979 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <[email protected]>
Date: Thu, 31 Oct 2019 18:31:32 +0100
Subject: cpufreq: sun50i: Show detected CPU bin, for easier debugging
Useful for people running into crashes during boot, due to issues
with OPP voltages.
Signed-off-by: Ondrej Jirman <[email protected]>
---
drivers/cpufreq/sun50i-cpufreq-nvmem.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/cpufreq/sun50i-cpufreq-nvmem.c b/drivers/cpufreq/sun50i-cpufreq-nvmem.c
index 111111111111..222222222222 100644
--- a/drivers/cpufreq/sun50i-cpufreq-nvmem.c
+++ b/drivers/cpufreq/sun50i-cpufreq-nvmem.c
@@ -241,6 +241,8 @@ static int sun50i_cpufreq_nvmem_probe(struct platform_device *pdev)
snprintf(name, sizeof(name), "speed%d", speed);
config.prop_name = name;
+ pr_info("Using CPU speed bin %s\n", name);
+
for_each_possible_cpu(cpu) {
struct device *cpu_dev = get_cpu_device(cpu);
--
Armbian