diff options
author | Thomas Gleixner <[email protected]> | 2020-05-21 22:05:17 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2020-06-11 15:15:04 +0200 |
commit | 3eeec385848855c8109eb72b8b309078d5507968 (patch) | |
tree | 8a5a5c65cf05151e9747dea2ce0d69c0da21b121 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 2ab70319bc1f79228da4dce7b9d604740c9beeef (diff) |
x86/entry: Provide idtentry_entry/exit_cond_rcu()
After a lengthy discussion [1] it turned out that RCU does not need a full
rcu_irq_enter/exit() when RCU is already watching. All it needs if
NOHZ_FULL is active is to check whether the tick needs to be restarted.
This allows to avoid a separate variant for the pagefault handler which
cannot invoke rcu_irq_enter() on a kernel pagefault which might sleep.
The cond_rcu argument is only temporary and will be removed once the
existing users of idtentry_enter/exit() have been cleaned up. After that
the code can be significantly simplified.
[ mingo: Simplified the control flow ]
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Acked-by: "Paul E. McKenney" <[email protected]>
Acked-by: Andy Lutomirski <[email protected]>
Link: [1] https://lkml.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions