2

Why riffa_driver.c yield() function does not yield to chnl_send() thread ?

enter image description here

kevin
  • 229
  • 2
  • 14
  • 4
    None of these function is *enforced* to switch to another CPU. As far as I remember, `cond_resched` just marks given point as possible to reschedule. It is up to the scheduler to switch the thread or not. As for `yield` its usage isn't recommended at all (see e.g. its [description](https://elixir.bootlin.com/linux/latest/source/kernel/sched/core.c#L5050) in the sources). – Tsyvarev Sep 04 '18 at 15:46

0 Answers0