Re: [PATCH 12/14] sparc64: rtrap: Remove unneeded need_resched() loop

2019-03-12 Thread Valentin Schneider
Hi, On 11/03/2019 23:13, David Miller wrote: [...] > > We must re-evaluate the %tstate value stored in ptregs, you cannot > make this change. > That's the one I was the less sure about, thanks for clearing it up and sorry for the noise.

Re: [PATCH 12/14] sparc64: rtrap: Remove unneeded need_resched() loop

2019-03-11 Thread David Miller
From: Valentin Schneider Date: Mon, 11 Mar 2019 22:47:50 + > Since the enabling and disabling of IRQs within preempt_schedule_irq() > is contained in a need_resched() loop, we don't need the outer arch > code loop. > > We seem to be looping back somewhere much higher than the usual >

[PATCH 12/14] sparc64: rtrap: Remove unneeded need_resched() loop

2019-03-11 Thread Valentin Schneider
Since the enabling and disabling of IRQs within preempt_schedule_irq() is contained in a need_resched() loop, we don't need the outer arch code loop. We seem to be looping back somewhere much higher than the usual preempt/need_resched checks, but AFAICT we would just branch to