Skip to content

Commit

Permalink
scsi: ufs: disable clock scaling
Browse files Browse the repository at this point in the history
Disable clock scaling to avoid costly workqueue overheads.

Power test results on Blueline:
[without this change]
  Suspend: 9.75mA
  Idle: 238.26mA
  Camera Preview: 1309.99mA
  Partial Wake Lock: 13.67mA
[with this change - disable clock scaling]
  Suspend: 9.73mA (-0.21%)
  Idle: 215.87mA (-9.4%)
  Camera Preview: 1181.71mA (-9.79%)
  Partial Wake Lock: 13.85mA (+1.32%)

Bug: 78601190
Signed-off-by: Mimi Wu <mimiwu@google.com>
Change-Id: I42e72c33ae1c12465d3fac51d80c8600f7a781a2
Signed-off-by: Jago Gardiner (nysadev) <jagogardiner@gmail.com>
Signed-off-by: nysascape <nysadev@raphielgang.org>
Signed-off-by: TogoFire <italomellopereira@gmail.com>
  • Loading branch information
Mimi Wu authored and TogoFire committed Aug 23, 2023
1 parent d8a1791 commit 801cfee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/scsi/ufs/ufs-qcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,6 @@ static void ufs_qcom_set_caps(struct ufs_hba *hba)
if (!host->disable_lpm) {
hba->caps |= UFSHCD_CAP_CLK_GATING;
hba->caps |= UFSHCD_CAP_HIBERN8_WITH_CLK_GATING;
hba->caps |= UFSHCD_CAP_CLK_SCALING;
}
hba->caps |= UFSHCD_CAP_AUTO_BKOPS_SUSPEND;

Expand Down

0 comments on commit 801cfee

Please sign in to comment.