This source file includes following definitions.
- wait_for_subcore_guest_exit
- wait_for_tb_resync
1
2
3
4
5
6
7
8
9 #undef DEBUG
10
11 #include <linux/types.h>
12 #include <linux/compiler.h>
13 #include <asm/paca.h>
14 #include <asm/hmi.h>
15 #include <asm/processor.h>
16
17 void wait_for_subcore_guest_exit(void)
18 {
19 int i;
20
21
22
23
24
25
26
27
28
29 if (!local_paca->sibling_subcore_state)
30 return;
31
32 for (i = 0; i < MAX_SUBCORE_PER_CORE; i++)
33 while (local_paca->sibling_subcore_state->in_guest[i])
34 cpu_relax();
35 }
36
37 void wait_for_tb_resync(void)
38 {
39 if (!local_paca->sibling_subcore_state)
40 return;
41
42 while (test_bit(CORE_TB_RESYNC_REQ_BIT,
43 &local_paca->sibling_subcore_state->flags))
44 cpu_relax();
45 }