This source file includes following definitions.
- loongson2_cpufreq_init
1
2
3
4
5
6
7 #include <linux/err.h>
8 #include <linux/smp.h>
9 #include <linux/platform_device.h>
10
11 static struct platform_device loongson2_cpufreq_device = {
12 .name = "loongson2_cpufreq",
13 .id = -1,
14 };
15
16 static int __init loongson2_cpufreq_init(void)
17 {
18 struct cpuinfo_mips *c = ¤t_cpu_data;
19
20
21 if ((c->processor_id & PRID_REV_MASK) >= PRID_REV_LOONGSON2F)
22 return platform_device_register(&loongson2_cpufreq_device);
23
24 return -ENODEV;
25 }
26
27 arch_initcall(loongson2_cpufreq_init);