rv/rtapp/wakeup: Use "rv_this" the rv_monitor variable

Commit d9e4c61a12 ("rv: Use generic rv_this for the rv_monitor
variable in LTL") renamed the rv_monitor variable to rv_this. But
rtapp/wakeup monitor was late to the party and missed that.

So for this monitor, rv_this is an empty struct. The reactor fails to
work, because rv_react() checks monitor->react and sees NULL.

Correct to "rv_this" and make the reactor work again.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Fixes: d9e4c61a12 ("rv: Use generic rv_this for the rv_monitor variable in LTL")
Link: https://lore.kernel.org/r/20261001044218.3508990-1-namcao@linutronix.de
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
This commit is contained in:
Nam Cao 2026-10-01 06:42:18 +02:00 committed by Gabriele Monaco
parent 47fad7f891
commit 5e9bdf2924

View File

@ -128,7 +128,7 @@ static void disable_wakeup(void)
ltl_monitor_destroy();
}
static struct rv_monitor rv_wakeup = {
static struct rv_monitor rv_this = {
.name = "wakeup",
.description = "Monitor that real-time tasks are not woken by lower-priority tasks",
.enable = enable_wakeup,
@ -137,12 +137,12 @@ static struct rv_monitor rv_wakeup = {
static int __init register_wakeup(void)
{
return rv_register_monitor(&rv_wakeup, &rv_rtapp);
return rv_register_monitor(&rv_this, &rv_rtapp);
}
static void __exit unregister_wakeup(void)
{
rv_unregister_monitor(&rv_wakeup);
rv_unregister_monitor(&rv_this);
}
module_init(register_wakeup);