diff options
| author | Thomas Gleixner <[email protected]> | 2020-11-17 13:19:45 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2020-11-19 09:48:29 +0000 |
| commit | 372acbbaa80940189593f9d69c7c069955f24f7a (patch) | |
| tree | adb76ce0c98532922866523ded191a3a662195f8 /fs/proc/array.c | |
| parent | tick: Document protections for tick related data (diff) | |
| download | kernel-372acbbaa80940189593f9d69c7c069955f24f7a.tar.gz kernel-372acbbaa80940189593f9d69c7c069955f24f7a.zip | |
tick/sched: Use tick_next_period for lockless quick check
No point in doing calculations.
tick_next_period = last_jiffies_update + tick_period
Just check whether now is before tick_next_period to figure out whether
jiffies need an update.
Add a comment why the intentional data race in the quick check is safe or
not so safe in a 32bit corner case and why we don't worry about it.
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
