]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
cpuidle: governors: Drop redundant checks related to PM QoS
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 May 2018 11:41:09 +0000 (13:41 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 May 2018 21:13:00 +0000 (23:13 +0200)
commitcf7eeea947efaf2348dd87542508b1d426b948cd
tree95dfe354c7b8d4467f8c9dc6a722e23bcbca76c0
parentb04e217704b7f879c6b91222b066983a44a7a09f
cpuidle: governors: Drop redundant checks related to PM QoS

PM_QOS_RESUME_LATENCY_NO_CONSTRAINT is defined as the 32-bit integer
maximum, so it is not necessary to test the return value of
dev_pm_qos_raw_read_value() against it directly in the menu and
ladder cpuidle governors.

Drop these redundant checks.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governors/ladder.c
drivers/cpuidle/governors/menu.c