diff options
author | Marvin Borner | 2021-04-27 23:01:51 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-27 23:01:51 +0200 |
commit | 51a80930a9bc25fae0728994cab1e0df3b63ef48 (patch) | |
tree | e08c4f8fdc3a73cca3a291ab901c2bcf6dac453e /kernel/features/io.c | |
parent | 977e62973abda3dd9fe5cb3462fc87d273ba63e3 (diff) |
Huge compositor, timer and yielding improvements
Diffstat (limited to 'kernel/features/io.c')
-rw-r--r-- | kernel/features/io.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/features/io.c b/kernel/features/io.c index da179ab..ac599e2 100644 --- a/kernel/features/io.c +++ b/kernel/features/io.c @@ -182,6 +182,9 @@ void io_unblock(enum io_type io) free(listener); iterator = next; } + + if (proc_idle()) + proc_yield(); } void io_unblock_pid(u32 pid) @@ -200,6 +203,9 @@ void io_unblock_pid(u32 pid) iterator = next; } } + + if (proc_idle()) + proc_yield(); } CLEAR void io_install(struct boot_info *boot) |