Jan Kiszka <[email protected]> writes:

> Hi Philippe,
>
> does this already ring some bell?
>
> https://source.denx.de/Xenomai/xenomai-images/-/jobs/419210
>
> Only triggers with qemu-amd64, not on real HW and not with 5.15.
>

I could not reproduce locally, but visual inspection revealed something
fishy in #8e2c09ee5323. Could you try this on the failing kernel? TIA,

diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c
index 2651c6cfd034..da6735d45a8a 100644
--- a/kernel/time/clockevents.c
+++ b/kernel/time/clockevents.c
@@ -644,8 +644,8 @@ void clockevents_exchange_device(struct clock_event_device 
*old,
                 * to the release list, keep it around but mark it as
                 * reserved.
                 */
+               list_del(&old->list);
                if (tick_check_is_proxy(new)) {
-                       list_del(&old->list);
                        clockevents_switch_state(old, CLOCK_EVT_STATE_RESERVED);
                } else {
                        clockevents_switch_state(old, CLOCK_EVT_STATE_DETACHED);

-- 
Philippe.

Reply via email to