1
0
Fork 0
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:
Stefan Lankes 2016-02-01 02:29:23 +01:00
parent 00476de470
commit 4e04aeecc8
2 changed files with 9 additions and 3 deletions

View file

@ -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;

View file

@ -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);