move wait_icr_idle() before x86_issue_ipi()
This commit is contained in:
@@ -809,6 +809,13 @@ void int3_handler(struct x86_user_context *regs)
|
|||||||
check_need_resched();
|
check_need_resched();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void wait_icr_idle(void)
|
||||||
|
{
|
||||||
|
while (lapic_read(LAPIC_ICR0) & APIC_ICR_BUSY) {
|
||||||
|
cpu_pause();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void x86_issue_ipi(unsigned int apicid, unsigned int low)
|
void x86_issue_ipi(unsigned int apicid, unsigned int low)
|
||||||
{
|
{
|
||||||
lapic_icr_write(apicid << LAPIC_ICR_ID_SHIFT, low);
|
lapic_icr_write(apicid << LAPIC_ICR_ID_SHIFT, low);
|
||||||
@@ -824,13 +831,6 @@ static void set_warm_reset_vector(unsigned long ip)
|
|||||||
x86_set_warm_reset(ip, first_page_va);
|
x86_set_warm_reset(ip, first_page_va);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void wait_icr_idle(void)
|
|
||||||
{
|
|
||||||
while (lapic_read(LAPIC_ICR0) & APIC_ICR_BUSY) {
|
|
||||||
cpu_pause();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __x86_wakeup(int apicid, unsigned long ip)
|
static void __x86_wakeup(int apicid, unsigned long ip)
|
||||||
{
|
{
|
||||||
int retry = 3;
|
int retry = 3;
|
||||||
|
|||||||
Reference in New Issue
Block a user