1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/init.h>
4 #include <linux/proc_fs.h>
5 #include <linux/seq_file.h>
7 extern const struct seq_operations cpuinfo_op
;
8 static int cpuinfo_open(struct inode
*inode
, struct file
*file
)
10 return seq_open(file
, &cpuinfo_op
);
13 static const struct file_operations proc_cpuinfo_operations
= {
17 .release
= seq_release
,
20 static int __init
proc_cpuinfo_init(void)
22 proc_create("cpuinfo", 0, NULL
, &proc_cpuinfo_operations
);
25 fs_initcall(proc_cpuinfo_init
);