diff options
| author | Bart Van Assche <[email protected]> | 2020-05-07 15:27:50 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-05-19 21:03:07 -0400 |
| commit | 5cac1095cf289f7623f835a9212b9ec0ad3b85b3 (patch) | |
| tree | 097ea26424ddf2b3ad5ac2182bf4279131f325f6 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | d0b1e4a638d670a09f42017a3e567dc846931ba8 (diff) | |
scsi: ufs: Make ufshcd_wait_for_register() sleep instead of busy-waiting
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().
Link: https://lore.kernel.org/r/[email protected]
Cc: Can Guo <[email protected]>
Cc: Avri Altman <[email protected]>
Cc: Bean Huo <[email protected]>
Cc: Alim Akhtar <[email protected]>
Cc: Asutosh Das <[email protected]>
Tested-by: Bean Huo <[email protected]>
Reviewed-by: Stanley Chu <[email protected]>
Reviewed-by: Bean Huo <[email protected]>
Reviewed-by: Asutosh Das <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions