Page MenuHomeFreeBSD

linuxkpi: Factorize the computation of timeout in `linux_schedule.c`
AbandonedPublic

Authored by dumbbell on Apr 13 2025, 10:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 7, 12:06 AM
Unknown Object (File)
Sep 20 2025, 3:40 AM
Unknown Object (File)
Sep 13 2025, 7:56 AM
Unknown Object (File)
Sep 13 2025, 7:51 AM
Unknown Object (File)
Sep 13 2025, 4:47 AM
Unknown Object (File)
Sep 8 2025, 10:39 PM
Unknown Object (File)
Sep 8 2025, 1:40 PM
Unknown Object (File)
Aug 10 2025, 10:29 PM
Subscribers

Details

Reviewers
markj
Group Reviewers
linuxkpi
Summary

The same logic was repeated three times.

This is part of the update of DRM drivers to Linux 6.7. This is a follow-up to D48755.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dumbbell edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Apr 15 2025, 1:37 PM

Factorize the computation of the expiry time and the remainder. They will be used in D48755.

This revision now requires review to proceed.Apr 19 2025, 2:00 PM
This revision is now accepted and ready to land.Apr 26 2025, 3:17 PM
sys/compat/linuxkpi/common/src/linux_schedule.c
74

I just realized that this will conflict with commit 325aa4dbd10d04a61a9529e1d76212b5649b3c73, sorry. In general we need to switch to using unsigned long for jiffies values, like Linux does.