Re: [PATCH v2 1/1] sched: watchdog: Touch kernel watchdog with sched count
From: Peter Zijlstra
Date: Wed Oct 21 2020 - 07:12:21 EST
On Wed, Oct 21, 2020 at 12:24:20PM +0200, Peter Zijlstra wrote:
> +void resched_current_from_IRQ(void)
> +{
> + struct pt_regs *regs = get_irq_regs();
> +
> + WARN_ON_ONCE(!in_irq());
> + WARN_ON_ONCE(user_mode(regs) || IS_ENABLED(CONFIG_PREEMPTION));
! that, obviously :/
> +
> + set_tsk_need_resched(tsk);
> + set_preempt_need_resched();
> +}