Hi All,
Is it safe to call wake_up function from interrupt context in bottom half ? Actually I am trying to do something like this :
//This function is called from the process context fn_in_process_context () { //some code here in_use = 1; wait_event (queue, in_use==0); //some more code }
//This function is called from the interrupt context.....in bottom half
callback_fn_in_interrupt_context() { //some code here in_use = 0; wake_up (queue); //some more code }
Is this piece of code looks OK or is it possible that wake_up() will somehow call the schedule in some cases?