Open in CoCalc
1
<tt>
2
/usr/src/linux/kernel/power/process.c
3
</tt>
4
by changing
5
<pre>
6
#define smp_pause() do { } while(0)
7
#define smp_continue() do { } while(0)
8
#define smp_lowlevel_suspend() do { } while(0)
9
</pre>
10
to
11
<pre>
12
void smp_pause(void) {
13
do { } while (0);
14
}
15
16
void smp_continue(void) {
17
do { } while (0);
18
}
19
20
void smp_lowlevel_suspend(void) {
21
do { } while (0);
22
}
23
</pre>
24
25
I also had to change the file
26
<tt>
27
/usr/src/linux/kernel/power/ui.c
28
</tt>
29
because it won't compile if debuging isn't set (and I don't want
30
debuging output). I guess the authors haven't tried to compile
31
without debuging. Anyway, change
32
<pre>
33
EXPORT_SYMBOL(__printnolog);
34
</pre>
35
to
36
<pre>
37
#ifdef CONFIG_SOFTWARE_SUSPEND_DEBUG
38
EXPORT_SYMBOL(__printnolog);
39
#endif
40
</pre>
41
42