Skip to content

Commit 6c82943

Browse files
committed
include/cpu/x86/lapic.h: increment the parked AP count in stop_this_cpu
Upstream-Status: Pending Change-Id: I4d9212c2bd845063df145544d675fb735286bc3c Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
1 parent d11a95a commit 6c82943

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/include/cpu/x86/lapic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ static __always_inline void lapic_send_ipi_others(uint32_t icrlow)
175175
*/
176176
static __always_inline void stop_this_cpu(void)
177177
{
178+
atomic_inc(&parked_ap_count);
178179
/* Called by an AP when it is ready to halt and wait for a new task */
179180
halt();
180181
}

0 commit comments

Comments
 (0)