Skip to content

Commit f5d69e6

Browse files
committed
Print using which scheduler when sched_select
1 parent a9c1003 commit f5d69e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel/sched.c

+4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ static const struct sched *sched;
88

99
int sched_select(int sched_type, struct thread_info *thread)
1010
{
11+
printk("Scheduler: ");
1112
switch (sched_type) {
1213
case SCHED_CLASS_RR:
14+
printk("Round-Robin\n");
1315
sched = &sched_rr;
1416
break;
1517
case SCHED_CLASS_BITMAP:
18+
printk("Bitmap\n");
1619
sched = &sched_bitmap;
1720
break;
1821
default:
22+
printk("Unknown");
1923
return -1;
2024
}
2125

0 commit comments

Comments
 (0)