--- zzzz-none-000/linux-4.4.60/arch/arm/kernel/setup.c 2017-04-08 07:53:53.000000000 +0000 +++ wasp-540e-714/linux-4.4.60/arch/arm/kernel/setup.c 2019-07-03 09:21:34.000000000 +0000 @@ -60,9 +60,22 @@ #include #include #include +#if defined(CONFIG_AVM_ENHANCED) +#include +#endif/*--- #if defined(CONFIG_AVM_ENHANCED) ---*/ #include "atags.h" +#ifdef CONFIG_AVM_ENHANCED +#include +#endif + +#include + +#ifdef CONFIG_AVM_ENHANCED +#include +#endif + #if defined(CONFIG_FPE_NWFPE) || defined(CONFIG_FPE_FASTFPE) char fpe_type[8]; @@ -966,6 +979,9 @@ #endif setup_dma_zone(mdesc); sanity_check_meminfo(); +#ifdef CONFIG_AVM_ENHANCED + init_avm_kernel_config(); +#endif arm_memblock_init(mdesc); paging_init(mdesc); @@ -1079,6 +1095,7 @@ static int c_show(struct seq_file *m, void *v) { int i, j; + int tmp; u32 cpuid; for_each_online_cpu(i) { @@ -1091,6 +1108,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",