lkml.org 
[lkml]   [2020]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/1] sched: watchdog: Touch kernel watchdog with sched count
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();
> +}

\
 
 \ /
  Last update: 2020-10-21 13:13    [W:0.090 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site