--- zzzz-none-000/linux-4.9.276/mm/vmstat.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/mm/vmstat.c 2023-04-05 08:19:02.000000000 +0000 @@ -61,6 +61,15 @@ put_online_cpus(); } EXPORT_SYMBOL_GPL(all_vm_events); +#if defined(CONFIG_AVM_POWERMETER) +/**--------------------------------------------------------------------------------**\ + * unprotected - for bh/irq-context +\**--------------------------------------------------------------------------------**/ +void __all_vm_events(unsigned long *ret) +{ + sum_vm_events(ret); +} +#endif /*--- #if defined(CONFIG_AVM_POWERMETER) ---*/ /* * Fold the foreign cpu events into our own. @@ -1796,10 +1805,12 @@ cpu_notifier_register_done(); #endif #ifdef CONFIG_PROC_FS - proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); + if (!IS_ENABLED(CONFIG_PROC_STRIPPED)) { + proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); + proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations); + } proc_create("pagetypeinfo", 0400, NULL, &pagetypeinfo_file_ops); proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations); - proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations); #endif return 0; }