Earlier I was using PREEMPT configuration and I was able to run the task in interrupt context with in_interrupt().
if(in_interrupt())
/* some task */
I want to run the task in an interrupt context seems which is not allowed in PREEMPT_RT.
Is there any direct way to run task in interrupt context in PREEMPT_RT