Thomas Gleixner 50e081b96e sched: Make RCU nest depth distinct in __might_resched()
For !RT kernels RCU nest depth in __might_resched() is always expected to
be 0, but on RT kernels it can be non zero while the preempt count is
expected to be always 0.

Instead of playing magic games in interpreting the 'preempt_offset'
argument, rename it to 'offsets' and use the lower 8 bits for the expected
preempt count, allow to hand in the expected RCU nest depth in the upper
bits and adopt the __might_resched() code and related checks and printks.

The affected call sites are updated in subsequent steps.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210923165358.243232823@linutronix.de
2021-10-01 13:57:51 +02:00
..
2021-03-22 00:11:52 +01:00
2021-05-12 11:43:26 +02:00
2021-03-22 00:11:52 +01:00
2020-10-29 11:00:30 +01:00
2021-08-20 12:32:58 +02:00
2021-08-30 13:42:10 -07:00
2021-03-22 00:11:52 +01:00
2021-08-30 13:42:10 -07:00
2021-03-22 00:11:52 +01:00
2021-06-18 11:43:07 +02:00