This source file includes following definitions.
- sparc_cpu_init
- sparc_cpu_idle
1
2
3
4
5
6
7 #include <linux/kernel.h>
8
9 #include <asm/mp.h>
10 #include <asm/mbus.h>
11
12 struct sparc_percpu *percpu_table;
13
14 void
15 sparc_cpu_init(void)
16 {
17
18
19
20
21
22
23
24
25 return;
26 }
27
28 extern thiscpus_mid;
29
30 void
31 sparc_cpu_idle(void)
32 {
33 int cpuid;
34
35
36 cpuid = (thiscpus_mid&(~8));
37
38
39
40 percpu_table[cpuid].cpuid = cpuid;
41 percpu_table[cpuid].cpu_is_alive = 0x1;
42 percpu_table[cpuid].cpu_is_idling = 0x1;
43
44
45 while(linux_smp_still_initting) ;
46 printk("cpu%d done spinning\n", get_cpuid());
47 for(;;) ;
48
49 return;
50 }