rcu_irq_exit() is only called on idle cpus.- For nohz cpus, a poller function [schedule_work(), enabled interrupts] peeks into the per-cpu data of the nohz cpu and checks if it is quiet or if it passed through a quiescent state.
If it didn't, then it sets a cpu_data->kick_poller flag and rcu_irq_exit() reports the grace period.
No need for an IPI either - rcu has a hook in the irq exit path.
I considered adding a cpu_quiet() on the irq exit path, but eventually
decided that I should instead place the added overhead in the infrequently
invoked force_quiescent_state() function. Could be argued either way,
of course.
Good point.Right now, I cheat if a nohz cpu is in a long-running nmi [while(other_cpu_is_in_nmi()) cpu_relax()], but I think I can fix that with an set_need_resched() in the rcu_nmi_exit().
Hmmm... I don't see where the NMI exit path checks the TIF_NEED_RESCHED
flag, but I could easily be missing something.