Commit 0c52310
hrtimer: Ignore slack time for RT tasks in schedule_hrtimeout_range()
While in theory the timer can be triggered before expires + delta, for the
cases of RT tasks they really have no business giving any lenience for
extra slack time, so override any passed value by the user and always use
zero for schedule_hrtimeout_range() calls. Furthermore, this is similar to
what the nanosleep(2) family already does with current->timer_slack_ns.
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230123173206.6764-3-dave@stgolabs.net1 parent c14fd3d commit 0c52310
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2272 | 2272 | | |
2273 | 2273 | | |
2274 | 2274 | | |
2275 | | - | |
| 2275 | + | |
2276 | 2276 | | |
2277 | 2277 | | |
2278 | 2278 | | |
| |||
2299 | 2299 | | |
2300 | 2300 | | |
2301 | 2301 | | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
2302 | 2309 | | |
2303 | 2310 | | |
2304 | 2311 | | |
| |||
2318 | 2325 | | |
2319 | 2326 | | |
2320 | 2327 | | |
2321 | | - | |
| 2328 | + | |
2322 | 2329 | | |
2323 | 2330 | | |
2324 | 2331 | | |
2325 | 2332 | | |
2326 | 2333 | | |
2327 | 2334 | | |
2328 | 2335 | | |
2329 | | - | |
| 2336 | + | |
| 2337 | + | |
2330 | 2338 | | |
2331 | 2339 | | |
2332 | 2340 | | |
| |||
0 commit comments