mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
add additional debug messages
This commit is contained in:
parent
07cd31996e
commit
77e9ef0ca6
1 changed files with 4 additions and 0 deletions
|
@ -674,6 +674,8 @@ int wakeup_task(tid_t id)
|
||||||
core_id = task->last_core;
|
core_id = task->last_core;
|
||||||
|
|
||||||
if (task->status == TASK_BLOCKED) {
|
if (task->status == TASK_BLOCKED) {
|
||||||
|
LOG_DEBUG("wakeup task %d\n", id);
|
||||||
|
|
||||||
task->status = TASK_READY;
|
task->status = TASK_READY;
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
|
@ -711,6 +713,8 @@ int block_task(tid_t id)
|
||||||
core_id = task->last_core;
|
core_id = task->last_core;
|
||||||
|
|
||||||
if (task->status == TASK_RUNNING) {
|
if (task->status == TASK_RUNNING) {
|
||||||
|
LOG_DEBUG("block task %d\n", id);
|
||||||
|
|
||||||
task->status = TASK_BLOCKED;
|
task->status = TASK_BLOCKED;
|
||||||
|
|
||||||
spinlock_irqsave_lock(&readyqueues[core_id].lock);
|
spinlock_irqsave_lock(&readyqueues[core_id].lock);
|
||||||
|
|
Loading…
Add table
Reference in a new issue