--- zzzz-none-000/linux-5.4.213/arch/arm/kernel/setup.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/arch/arm/kernel/setup.c 2024-08-14 09:01:27.000000000 +0000 @@ -59,10 +59,19 @@ #include #include #include +#include +#if defined(CONFIG_AVM_ENHANCED) +#include +#endif/*--- #if defined(CONFIG_AVM_ENHANCED) ---*/ #include "atags.h" +#include + +#include +#include + #if defined(CONFIG_FPE_NWFPE) || defined(CONFIG_FPE_FASTFPE) char fpe_type[8]; @@ -1141,12 +1150,16 @@ early_ioremap_reset(); paging_init(mdesc); + kasan_init(); request_standard_resources(mdesc); if (mdesc->restart) arm_pm_restart = mdesc->restart; - unflatten_device_tree(); + unflatten_and_copy_device_tree(); + + avm_fw_info_init(); + avm_module_mem_init(); arm_dt_init_cpu_maps(); psci_dt_init(); @@ -1250,6 +1263,7 @@ static int c_show(struct seq_file *m, void *v) { int i, j; + int tmp; u32 cpuid; for_each_online_cpu(i) { @@ -1262,6 +1276,8 @@ cpuid = is_smp() ? per_cpu(cpu_data, i).cpuid : read_cpuid_id(); seq_printf(m, "model name\t: %s rev %d (%s)\n", cpu_name, cpuid & 15, elf_platform); + tmp = cpufreq_quick_get(i); + seq_printf(m, "cpu MHz\t: %u.%03u\n", tmp / 1000, tmp % 1000); #if defined(CONFIG_SMP) seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",