mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / fs / proc / cpuinfo.c
blob96f1087e372c19332d0acc23fb588a06cf10efe8
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/cpufreq.h>
3 #include <linux/fs.h>
4 #include <linux/init.h>
5 #include <linux/proc_fs.h>
6 #include <linux/seq_file.h>
8 __weak void arch_freq_prepare_all(void)
12 extern const struct seq_operations cpuinfo_op;
13 static int cpuinfo_open(struct inode *inode, struct file *file)
15 arch_freq_prepare_all();
16 return seq_open(file, &cpuinfo_op);
19 static const struct file_operations proc_cpuinfo_operations = {
20 .open = cpuinfo_open,
21 .read = seq_read,
22 .llseek = seq_lseek,
23 .release = seq_release,
26 static int __init proc_cpuinfo_init(void)
28 proc_create("cpuinfo", 0, NULL, &proc_cpuinfo_operations);
29 return 0;
31 fs_initcall(proc_cpuinfo_init);