Thread (17 messages) 17 messages, 3 authors, 5h ago

Re: [PATCH v2 1/4] rv/rtapp/sleep: Make the error more informative for user

From: Gabriele Monaco <gmonaco@redhat.com>
Date: 2026-07-01 12:26:57
Also in: linux-doc, lkml

On Fri, 2026-06-19 at 09:21 +0200, Nam Cao wrote:
-static void handle_sched_wakeup(void *data, struct task_struct *task)
+static void handle_sched_exit(void *data, bool is_switch)
 {
-	ltl_atom_pulse(task, LTL_WAKE, true);
+	ltl_atom_pulse(current, LTL_SCHEDULE_IN, true);
 }
Well, this triggers also in a spurious schedule: current -> current, can
that be a problem? Otherwise you may either use sched_switch over next
or pulse only if is_switch.

It probably isn't a big deal though, since there's no SLEEP prior.. But
we may want to avoid the noise.

Looks good overall.

Reviewed-by: Gabriele Monaco <gmonaco@redhat.com>

Thanks,
Gabriele
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help