udelay mdelay
driver常常會需要很短且精準的delayn microsecond/millisecond,以完成sync此時用jiffies就不恰當,第一單位不夠小,如果timer是100Hz,表示一個tick是10 millisecond第二不夠準,因為透過scheduler在
- 5月 23 週一 201113:53
Small Delay
- 5月 23 週一 201109:31
Kernel Korner - Sleeping in the Kernel
原文: Sleeping in the Kernel
在多處理器SMP和hyperthreading的時代,sleep_on這個function已經無法保證其可靠性了以下為讓一個process安全以及跨平台的sleep方式
Linux kernel有好些時候一個process會需要wait,直到某
1