Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platform: x86: intel_scu_ipc: Replace mdelay with usleep_range in int…
…el_scu_ipc_i2c_cntrl intel_scu_ipc_i2c_cntrl() calls mutex_lock(), which indicates this function is not called in atomic context. Despite never getting called from atomic context, intel_scu_ipc_i2c_cntrl() calls mdelay to busily wait. This is not necessary and can be replaced with usleep_range to avoid busy waiting. This is found by a static analysis tool named DCNS written by myself. And I also manually check it. Signed-off-by: Jia-Ju Bai <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
- Loading branch information