Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do {
- preempt_disable();
- local_irq_enable(); //why enable interrupt here?
- __schedule(true); //interrupt would be disabled inside it
- local_irq_disable();
- sched_preempt_enable_no_resched();
- } while (need_resched());
Add Comment
Please, Sign In to add comment