diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2022-08-25 19:41:31 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2022-09-19 15:35:08 +0300 |
commit | 44b0c2957adc62b86fcd51adeaf8e993171bc319 (patch) | |
tree | 43d810c6088e40acbf39e01d00e5b13758ee11bd /include/linux/resctrl.h | |
parent | 9458e0a78c45bc6537ce11eb9f03489eab92f9c2 (diff) | |
download | linux-44b0c2957adc62b86fcd51adeaf8e993171bc319.tar.xz |
u64_stats: Streamline the implementation
The u64 stats code handles 3 different cases:
- 32bit UP
- 32bit SMP
- 64bit
with an unreadable #ifdef maze, which was recently expanded with PREEMPT_RT
conditionals.
Reduce it to two cases (32bit and 64bit) and drop the optimization for
32bit UP as suggested by Linus.
Use the new preempt_disable/enable_nested() helpers to get rid of the
CONFIG_PREEMPT_RT conditionals.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220825164131.402717-9-bigeasy@linutronix.de
Diffstat (limited to 'include/linux/resctrl.h')
0 files changed, 0 insertions, 0 deletions