Skip to content

Commit

Permalink
scsi: ufs: Only apply pm_qos to the CPU servicing UFS interrupts
Browse files Browse the repository at this point in the history
Applying pm_qos restrictions to multiple CPUs which aren't used for ufs
processing is a waste of power. Instead, only apply the pm_qos
restrictions to the CPU that services the UFS interrupts to save power.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
  • Loading branch information
kerneltoast authored and acuicultor committed Dec 18, 2020
1 parent a028d05 commit 5715834
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/scsi/ufs/ufs-qcom.c
Expand Up @@ -1867,9 +1867,8 @@ static int ufs_qcom_pm_qos_init(struct ufs_qcom_host *host)
if (ret)
goto free_groups;

host->pm_qos.groups[i].req.type = PM_QOS_REQ_AFFINE_CORES;
host->pm_qos.groups[i].req.cpus_affine =
host->pm_qos.groups[i].mask;
host->pm_qos.groups[i].req.type = PM_QOS_REQ_AFFINE_IRQ;
host->pm_qos.groups[i].req.irq = host->hba->irq;
host->pm_qos.groups[i].state = PM_QOS_UNVOTED;
host->pm_qos.groups[i].active_reqs = 0;
host->pm_qos.groups[i].host = host;
Expand Down

0 comments on commit 5715834

Please sign in to comment.