// SPDX-License-Identifier: GPL-2.0 #include <linux/cpufreq.h> #include <linux/fs.h> #include <linux/init.h> #include <linux/proc_fs.h> #include <linux/seq_file.h> extern const struct seq_operations cpuinfo_op; static int cpuinfo_open(struct inode *inode, struct file *file) { … } static const struct proc_ops cpuinfo_proc_ops = …; static int __init proc_cpuinfo_init(void) { … } fs_initcall(proc_cpuinfo_init);