timer sleep and wakeup functions by Balazs-san

This commit is contained in:
Masamichi Takagi m-takagi@ab.jp.nec.com
2012-11-26 15:14:41 +09:00
parent 22bd5d8247
commit 337fe4b20d
7 changed files with 221 additions and 5 deletions

View File

@@ -7,6 +7,7 @@
#include <page.h>
#include <cpulocal.h>
#include <auxvec.h>
#include <timer.h>
#define DEBUG_PRINT_PROCESS
@@ -365,6 +366,11 @@ void sched_init(void)
INIT_LIST_HEAD(&cpu_local_var(runq));
cpu_local_var(runq_len) = 0;
aal_mc_spinlock_init(&cpu_local_var(runq_lock));
if (aal_mc_get_processor_id() == TIMER_CPU_ID) {
init_timers();
wake_timers_loop();
}
}
void schedule(void)