Commit 0258f2a
Support Linux 6.15
Update hrtimer initialization to use the new hrtimer_setup() interface
introduced in Linux commit 908a1d7 (hrtimers: Introduce hrtimer_setup()
to replace hrtimer_init()),which replaces hrtimer_init() with a
type-safe and simplified API.
The new interface requires a hrtimer_callback function pointer to be
explicitly provided at initialization. This commit identifies and passes
the appropriate callback from the existing code to maintain equivalent
behavior.
The legacy hrtimer_init() remains available but is discouraged in new
code. Compatibility is preserved using version checks against
KERNEL_VERSION(6, 15, 0).1 parent 34fe3b5 commit 0258f2a
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1677 | 1677 | | |
1678 | 1678 | | |
1679 | 1679 | | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
1680 | 1684 | | |
1681 | 1685 | | |
| 1686 | + | |
1682 | 1687 | | |
1683 | 1688 | | |
1684 | 1689 | | |
| |||
0 commit comments