cpuidle: teo: Optionally skip polling states in teo_find_shallower_state()
authorKajetan Puchalski <kajetan.puchalski@arm.com>
Thu, 5 Jan 2023 14:51:58 +0000 (14:51 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Jan 2023 19:53:22 +0000 (20:53 +0100)
commit27f850880192c19a26d89dab19e2bddcf276032f
tree53737a3c68c924091e4cfafa0f91309128d7f9ff
parentb7bfaa761d760e72a969d116517eaa12e404c262
cpuidle: teo: Optionally skip polling states in teo_find_shallower_state()

Add a no_poll flag to teo_find_shallower_state() that will let the
function optionally not consider polling states.

This allows the caller to guard against the function inadvertently
resulting in TEO putting the CPU in a polling state when that
behaviour is undesirable.

Signed-off-by: Kajetan Puchalski <kajetan.puchalski@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governors/teo.c