mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
cores goes into the halt state after the termination of the application
This commit is contained in:
parent
00476de470
commit
4e04aeecc8
2 changed files with 9 additions and 3 deletions
|
@ -219,7 +219,10 @@ int smp_main(void)
|
|||
|
||||
while(1) {
|
||||
check_workqueues();
|
||||
HALT;
|
||||
if (libc_sd >= 0)
|
||||
PAUSE;
|
||||
else
|
||||
HALT;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -467,7 +470,10 @@ int hermit_main(void)
|
|||
|
||||
while(1) {
|
||||
check_workqueues();
|
||||
HALT;
|
||||
if (libc_sd >= 0)
|
||||
PAUSE;
|
||||
else
|
||||
HALT;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -579,7 +579,7 @@ int wakeup_task(tid_t id)
|
|||
}
|
||||
spinlock_irqsave_unlock(&readyqueues[core_id].lock);
|
||||
|
||||
#ifdef DYNAMIC_TICKS
|
||||
#if 0 //def DYNAMIC_TICKS
|
||||
// send IPI to be sure that the scheuler recognize the new task
|
||||
if (core_id != CORE_ID)
|
||||
apic_send_ipi(core_id, 121);
|
||||
|
|
Loading…
Add table
Reference in a new issue