Skip to content

Commit 5df6c68

Browse files
committed
ipc: pm: don't WFI when waiting for PM D3
Use a while loop instead. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent 0db7fba commit 5df6c68

4 files changed

Lines changed: 4 additions & 12 deletions

File tree

src/ipc/apl-ipc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ void ipc_platform_do_cmd(struct ipc *ipc)
138138
// TODO: signal audio work to enter D3 in normal context
139139
/* are we about to enter D3 ? */
140140
if (iipc->pm_prepare_D3) {
141-
while (1)
142-
wait_for_interrupt(0);
141+
while (1) {};
143142
}
144143

145144
tracev_ipc("CmD");

src/ipc/byt-ipc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,7 @@ void ipc_platform_do_cmd(struct ipc *ipc)
159159
// TODO: signal audio work to enter D3 in normal context
160160
/* are we about to enter D3 ? */
161161
if (iipc->pm_prepare_D3) {
162-
while (1) {
163-
trace_ipc("pme");
164-
wait_for_interrupt(0);
165-
}
162+
while (1) {};
166163
}
167164

168165
tracev_ipc("CmD");

src/ipc/cnl-ipc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ void ipc_platform_do_cmd(struct ipc *ipc)
140140
// TODO: signal audio work to enter D3 in normal context
141141
/* are we about to enter D3 ? */
142142
if (iipc->pm_prepare_D3) {
143-
while (1)
144-
wait_for_interrupt(0);
143+
while (1) {};
145144
}
146145

147146
tracev_ipc("CmD");

src/ipc/hsw-ipc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,7 @@ void ipc_platform_do_cmd(struct ipc *ipc)
155155
// TODO: signal audio work to enter D3 in normal context
156156
/* are we about to enter D3 ? */
157157
if (iipc->pm_prepare_D3) {
158-
while (1) {
159-
trace_ipc("pme");
160-
wait_for_interrupt(0);
161-
}
158+
while (1) {};
162159
}
163160

164161
tracev_ipc("CmD");

0 commit comments

Comments
 (0)