summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/bthread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/bthread.c b/common/bthread.c
index c811797130..80651344da 100644
--- a/common/bthread.c
+++ b/common/bthread.c
@@ -163,7 +163,10 @@ void bthread_info(void)
void bthread_reschedule(void)
{
- bthread_schedule(list_next_entry(current, list));
+ struct bthread *next = list_next_entry(current, list);
+ if (current != next)
+ pr_debug("switch %s -> %s\n", current->name, next->name);
+ bthread_schedule(next);
}
void bthread_schedule(struct bthread *to)