--- zzzz-none-000/linux-4.4.60/mm/vmstat.c 2017-04-08 07:53:53.000000000 +0000 +++ dragonfly-4020-701/linux-4.4.60/mm/vmstat.c 2018-11-08 13:36:17.000000000 +0000 @@ -62,6 +62,15 @@ } 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. * @@ -1553,10 +1562,12 @@ cpu_notifier_register_done(); #endif #ifdef CONFIG_PROC_FS - proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); - proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops); + if (!IS_ENABLED(CONFIG_PROC_STRIPPED)) { + proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); + proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops); + proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations); + } proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations); - proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations); #endif return 0; }