It's somewhat suboptimal as it doesn't guarantee that 'p' gets control next.
e.g. 2 tasks (T0 and T1) have been woken up before an actual
re-schedule takes place. Even if T1 is of lower prio than T0,
task_wake_up_rt() will see the NEED_RESCHED flag and bail out while it
would make sense at this moment to push T1 off this cpu.
p.s. hope you are better today. get well! :-)
--
Best regards,
Dmitry Adamushko
--