This source file includes following definitions.
- platform_do_lowpower
- sirfsoc_cpu_die
1
2
3
4
5
6
7
8 #include <linux/kernel.h>
9 #include <linux/errno.h>
10 #include <linux/smp.h>
11
12 #include <asm/smp_plat.h>
13 #include "common.h"
14
15 static inline void platform_do_lowpower(unsigned int cpu)
16 {
17
18 for (;;) {
19 __asm__ __volatile__("dsb\n\t" "wfi\n\t"
20 : : : "memory");
21 if (prima2_pen_release == cpu_logical_map(cpu)) {
22
23
24
25 break;
26 }
27 }
28 }
29
30
31
32
33
34
35 void sirfsoc_cpu_die(unsigned int cpu)
36 {
37 platform_do_lowpower(cpu);
38 }