Commit af92b67
libkrunfw: Fix virtio-rtc compatibility for kernel 6.12
Add compatibility patch to backport virtio-rtc driver to kernel 6.12.
Fix API differences:
- Replace secs_to_jiffies(60) with msecs_to_jiffies(60 * 1000)
(secs_to_jiffies was introduced after 6.12)
- Replace devm_device_init_wakeup(dev) with device_init_wakeup(dev, true)
(devm_device_init_wakeup was introduced after 6.12)
Both changes provide equivalent functionality and allow the driver to
build cleanly on kernel 6.12.76.
Signed-off-by: Dorinda Bassey <dbassey@redhat.com>1 parent bfed4d9 commit af92b67
1 file changed
Lines changed: 41 additions & 0 deletions
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments