--- zzzz-none-000/linux-4.9.276/drivers/cpufreq/cpufreq_governor.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/drivers/cpufreq/cpufreq_governor.c 2023-04-05 08:19:01.000000000 +0000 @@ -22,6 +22,9 @@ #include #include "cpufreq_governor.h" +#if defined(CONFIG_AVM_SIMPLE_PROFILING) +#include +#endif static DEFINE_PER_CPU(struct cpu_dbs_info, cpu_dbs); @@ -192,6 +195,11 @@ load = j_cdbs->prev_load; j_cdbs->prev_load = 0; } else { +#if defined(CONFIG_AVM_SIMPLE_PROFILING) + /*--- hier werden auch die non-Linux-TC's beim load beruecksichtigt: ---*/ + load = avm_get_load(j, policy->cur); + pr_debug("%s: cpu=%u freq=%d load=%u%%\n", __func__, j, policy->cur, load); +#else if (time_elapsed >= idle_time) { load = 100 * (time_elapsed - idle_time) / time_elapsed; } else { @@ -212,6 +220,7 @@ */ load = (int)idle_time < 0 ? 100 : 0; } +#endif j_cdbs->prev_load = load; }