the actual problem is not the irq sharing but that the cevt-r4k registers the irq when the cevt is registered and not when it is activated. i believe that the patch fixes this problemYour patch certainly does what you say it does, but that is kind of an abuse of the set_mode() callback.
well there are 2 modes "run as oneshot timer and dont run. i dont see how this is an abuse?