This source file includes following definitions.
- save_processor_state
- restore_processor_state
1
2
3
4
5
6
7
8 #include <linux/sched.h>
9 #include <linux/suspend.h>
10 #include <asm/current.h>
11 #include <asm/mmu_context.h>
12 #include <asm/switch_to.h>
13
14 void save_processor_state(void)
15 {
16
17
18
19
20 flush_all_to_thread(current);
21
22 #ifdef CONFIG_PPC64
23 hard_irq_disable();
24 #endif
25
26 }
27
28 void restore_processor_state(void)
29 {
30 #ifdef CONFIG_PPC32
31 switch_mmu_context(current->active_mm, current->active_mm, NULL);
32 #endif
33 }