Added missing processor_sleep() for CONFIG_SMP_IDLE_POLL

This commit is contained in:
Jan Stoess 2009-06-09 12:58:28 +02:00
parent 8378ab328f
commit 867080e45b
1 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/*********************************************************************
*
* Copyright (C) 2002, 2004-2005-2003, 2006-2008, Karlsruhe University
* Copyright (C) 2002, 2004-2005-2003, 2006-2009, Karlsruhe University
*
* File path: glue/v4-x86/cpu.cc
* Description: X86 CPU implementation
@ -66,4 +66,13 @@ void init_xcpu_handling ()
idt.add_gate(IDT_LAPIC_XCPU_IPI, idt_t::interrupt, smp_trigger_ipi);
}
#if defined(CONFIG_SMP_IDLE_POLL)
void processor_sleep()
{
asm("sti; nop; nop; nop; cli\n");
process_xcpu_mailbox();
}
#endif
#endif /* defined(CONFIG_SMP) */