Replace hlt() loops with halt()
Change-Id: I8486e70615f4c404a342cb86963b5357a934c41d Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/7606 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
1b2f2a0714
commit
bd79c5eaf1
25 changed files with 60 additions and 77 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <cpu/x86/lapic_def.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <arch/hlt.h>
|
||||
#include <halt.h>
|
||||
#include <smp/node.h>
|
||||
|
||||
/* See if I need to initialize the local apic */
|
||||
|
|
@ -59,9 +59,7 @@ static inline __attribute__((always_inline)) unsigned long lapicid(void)
|
|||
static inline __attribute__((always_inline)) void stop_this_cpu(void)
|
||||
{
|
||||
/* Called by an AP when it is ready to halt and wait for a new task */
|
||||
for(;;) {
|
||||
hlt();
|
||||
}
|
||||
halt();
|
||||
}
|
||||
#else
|
||||
void stop_this_cpu(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue