Re: [PATCH RFC] ufs: Make ufshcd_wait_for_register() sleep instead of busy-waiting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 7 May 2020 15:27:50 -0700, Bart Van Assche wrote:

> The ufshcd_wait_for_register() function either sleeps or spins until the
> specified register has reached the desired value. Busy-waiting is not
> only considered a bad practice but also has a bad impact on energy
> consumption. Always sleep instead of spinning by making sure that all
> ufshcd_wait_for_register() calls happen from a context where it is
> allowed to sleep. The only function call that has to be moved is the
> ufshcd_hba_stop() call in ufshcd_host_reset_and_restore().

Applied to 5.8/scsi-queue, thanks!

[1/1] scsi: ufs: Make ufshcd_wait_for_register() sleep instead of busy-waiting
      https://git.kernel.org/mkp/scsi/c/5cac1095cf28

-- 
Martin K. Petersen	Oracle Linux Engineering



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux