arm64/panic: Unify all three existing notifier blocks
[linux-2.6-microblaze.git] / arch / arm64 / kernel / cpufeature.c
index 9f63053..9b79df9 100644 (file)
@@ -119,24 +119,11 @@ static inline void finalize_system_capabilities(void)
        static_branch_enable(&arm64_const_caps_ready);
 }
 
-static int dump_cpu_hwcaps(struct notifier_block *self, unsigned long v, void *p)
+void dump_cpu_features(void)
 {
        /* file-wide pr_fmt adds "CPU features: " prefix */
        pr_emerg("0x%*pb\n", ARM64_NCAPS, &cpu_hwcaps);
-       return 0;
-}
-
-static struct notifier_block cpu_hwcaps_notifier = {
-       .notifier_call = dump_cpu_hwcaps
-};
-
-static int __init register_cpu_hwcaps_dumper(void)
-{
-       atomic_notifier_chain_register(&panic_notifier_list,
-                                      &cpu_hwcaps_notifier);
-       return 0;
 }
-__initcall(register_cpu_hwcaps_dumper);
 
 DEFINE_STATIC_KEY_ARRAY_FALSE(cpu_hwcap_keys, ARM64_NCAPS);
 EXPORT_SYMBOL(cpu_hwcap_keys);