How use semaphore instead this code (wait with while loop) linux kernel?
I use below code for waiting interrupt and read data, this code works fine but it use 100% of cpu.
How use semaphore to avoid cpu 100% usage?
How use semaphore instead this code (wait with active loop) linux kernel?
I use below code for waiting interrupt and read data, this code works fine but it use 100% of cpu.
How use semaphore to avoid cpu 100% usage?
How use semaphore instead this code(wait with while loop and flag) linux kernel?
i use below code for waiting interrupt and read data, this code work fine but it use 100% of cpu.
How use semaphore to avoid cpu 100% usage?