Bug 219570
Summary: | Reading from vivid results in 100% CPU use | ||
---|---|---|---|
Product: | v4l-dvb | Reporter: | Artem S. Tashkinov (aros) |
Component: | v4l-core | Assignee: | v4l-dvb_v4l-core (v4l-dvb_v4l-core) |
Status: | RESOLVED PATCH_ALREADY_AVAILABLE | ||
Severity: | low | CC: | hverkuil |
Priority: | P3 | ||
Hardware: | AMD | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: |
Description
Artem S. Tashkinov
2024-12-07 04:06:41 UTC
Hans, please take a look. When waiting in the kthread until it is time to create the next frame, vivid uses: while (!it_is_time) schedule() Which is correct, but inefficient. If no other CPU activity is ongoing, then this is equivalent to a busy loop. I'll replace it with a wait_event_interruptible_timeout(). Thanks a lot for the patch! Fixed by: https://lore.kernel.org/linux-media/f7bc5105-332f-414b-8160-3c0ff679c608@xs4all.nl/T/#u |